mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add support for asice document format
This commit is contained in:
parent
fc9cff675e
commit
95ed1bbf47
5 changed files with 64 additions and 63 deletions
|
@ -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 bdoc ddoc zip rar gz tar 7z odt doc docx).freeze
|
||||
TYPES = %w(pdf asice bdoc ddoc zip rar gz tar 7z odt doc docx).freeze
|
||||
end
|
||||
|
||||
attr_accessor :body
|
||||
|
|
|
@ -67,7 +67,7 @@ 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,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx
|
||||
# System default for legal document types is: pdf,asice,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx
|
||||
# legal_document_types: "pdf,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx"
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ More info at http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol
|
|||
Contact Mapping protocol short version:
|
||||
|
||||
All values are limited to Unicode Latin characters if stricter limits are not specified. This includes unicode blocks
|
||||
Basic Latin, Latin-1 Supplement, Latin Extended-A, Latin Extended-B, Latin Extended C, Latin Extended D,
|
||||
Basic Latin, Latin-1 Supplement, Latin Extended-A, Latin Extended-B, Latin Extended C, Latin Extended D,
|
||||
Latin Extended Additional, Diacritics.
|
||||
More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
||||
|
||||
|
@ -16,9 +16,9 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<create> 1
|
||||
<create> 1
|
||||
<contact:create> 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"
|
||||
<contact:id> 0-1 Contact id, optional,
|
||||
<contact:id> 0-1 Contact id, optional,
|
||||
string: ASCII letters, numbers, ':', '-' characters, no spaces,
|
||||
max 100 characters,
|
||||
generated automatically if missing.
|
||||
|
@ -34,7 +34,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
<contact:voice> 1 Phone number in format \+ddd.d+
|
||||
<contact:fax> 0 Fax is not supported and must be blank or missing
|
||||
<contact:email> 1 E-mail
|
||||
<extension> 1
|
||||
<extension> 1
|
||||
<eis:extdata> 1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:ident> 1 Identifier
|
||||
Attribute: "type"
|
||||
|
@ -43,8 +43,8 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
"birthday" # Birthday date in format in YYYY-MM-DD
|
||||
Attribute: "cc"
|
||||
"EE" # Country code in ISO_3166-1 aplha 2
|
||||
<eis:legalDocument> 0-1 Base64 encoded document
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-create-command-successfully-creates-a-contact)
|
||||
|
@ -53,7 +53,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<update> 1
|
||||
<update> 1
|
||||
<contact:update> 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"
|
||||
<contact:id> 1 Contact id, required
|
||||
<contact:chg> 1 Change container
|
||||
|
@ -71,7 +71,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
<contact:email> 0-1 E-mail
|
||||
<contact:authInfo> 0-1 Required if registrar is not the owner of the contact.
|
||||
<contact:pw> 1 Contact password. Attribute: roid="String"
|
||||
<extension> 0-1
|
||||
<extension> 0-1
|
||||
<eis:extdata> 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:ident> 0-1 Identifier
|
||||
Attribute: "type"
|
||||
|
@ -80,8 +80,8 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
"birthday" # Birthday date in format in YYYY-MM-DD
|
||||
Attribute: "cc"
|
||||
"EE" # Country code in ISO_3166-1 aplha 2
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
|
||||
|
@ -91,15 +91,15 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<delete> 1
|
||||
<delete> 1
|
||||
<contact:delete> 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"
|
||||
<contact:id> 1 Contact id
|
||||
<contact:authInfo> 0-1 Required if registrar is not the owner of the contact.
|
||||
<contact:pw> 1 Contact password. Attribute: roid="String"
|
||||
<extension> 0-1
|
||||
<extension> 0-1
|
||||
<eis:extdata> 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-delete-command-deletes-contact)
|
||||
|
@ -109,9 +109,9 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<check> 1
|
||||
<check> 1
|
||||
<contact:check> 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"
|
||||
<contact:id> 1-n Contact id
|
||||
<contact:id> 1-n Contact id
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-check-command-returns-info-about-contact-availability)
|
||||
|
@ -121,9 +121,9 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<info> 1
|
||||
<info> 1
|
||||
<contact:info> 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"
|
||||
<contact:id> 1-n Contact id
|
||||
<contact:id> 1-n Contact id
|
||||
<contact:authInfo> 0-1 Required if registrar is not the owner of the contact.
|
||||
<contact:pw> 1 Contact password. Attribute: roid="String"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
|
|
@ -12,15 +12,15 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
------------------------- ------- -----------------
|
||||
<create> 1
|
||||
<create> 1
|
||||
<domain:create> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:period> 0-1 Registration period for domain.
|
||||
<domain:period> 0-1 Registration period for domain.
|
||||
Must add up to 3m, 6m, 9m, 1y, 2y, 3y, 4y, 5y, 6y, 7y, 8y, 9y, 10y.
|
||||
Attribute: unit="y/m/d"
|
||||
Default is 1 year.
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 2-11
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 2-11
|
||||
<domain:hostName> 1 Hostname of the nameserver
|
||||
<domain:hostAddr> 0-2 Required if nameserver hostname is under the same domain.
|
||||
Attribute ip="v4 / v6"
|
||||
|
@ -30,16 +30,16 @@ Domain name mapping protocol short version:
|
|||
<domain:authInfo> 0-1
|
||||
<domain:pw> 1 Transfer code. Attribute: roid="String"
|
||||
</domain:authInfo>
|
||||
<extension> 1
|
||||
<extension> 1
|
||||
<secDNS:create> 0-1 Attribute: xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1"
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:flags> 1 Allowed values: 0, 256, 257
|
||||
<secDNS:protocol> 1 Allowed values: 3
|
||||
<secDNS:alg> 1 Allowed values: 3, 5, 6, 7, 8, 10, 13, 14
|
||||
<secDNS:pubKey> 1 Public key
|
||||
<eis:extdata> 1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:reserved> 0-1
|
||||
<eis:pw> 0-1 Required if registering a reserved domain
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
@ -50,27 +50,27 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
------------------------ -------- -----------------
|
||||
<update> 1
|
||||
<update> 1
|
||||
<domain:update> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:add> 0-1 Objects to add
|
||||
<domain:contact> 0-n Contact reference. Attribute: type="admin / tech"
|
||||
<domain:status> 0-n Status description.
|
||||
Attribute: s="clientDeleteProhibited / clientHold /
|
||||
clientRenewProhibited / clientTransferProhibited /
|
||||
<domain:status> 0-n Status description.
|
||||
Attribute: s="clientDeleteProhibited / clientHold /
|
||||
clientRenewProhibited / clientTransferProhibited /
|
||||
clientUpdateProhibited"
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 1
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 1
|
||||
<domain:hostName> 1 Hostname of the nameserver
|
||||
<domain:hostAddr> 0-2 Required if nameserver hostname is under the same domain.
|
||||
Attribute ip="v4 / v6"
|
||||
<domain:rem> 0-1 Objects to remove
|
||||
<domain:contact> 0-n Contact reference. Attribute: type="admin / tech"
|
||||
<domain:status> 0-n Attribute: s="clientDeleteProhibited / clientHold /
|
||||
clientRenewProhibited / clientTransferProhibited /
|
||||
<domain:status> 0-n Attribute: s="clientDeleteProhibited / clientHold /
|
||||
clientRenewProhibited / clientTransferProhibited /
|
||||
clientUpdateProhibited"
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 1
|
||||
<domain:ns> 0-1
|
||||
<domain:hostAttr> 1
|
||||
<domain:hostName> 1 Hostname of the nameserver
|
||||
<domain:chg> 0-1 Attributes to change
|
||||
<domain:registrant> 0-1 Contact reference to the registrant
|
||||
|
@ -80,18 +80,18 @@ Domain name mapping protocol short version:
|
|||
</domain:authInfo>
|
||||
<extension> 0-1 Required if registrant is changing
|
||||
<secDNS:update> 0-1 Attribute: xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1"
|
||||
<secDNS:rem> 0-1
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:rem> 0-1
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:pubKey> 1 Public key
|
||||
<secDNS:add> 0-1
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:add> 0-1
|
||||
<secDNS:keyData> 1-n
|
||||
<secDNS:flags> 1 Allowed values: 0, 256, 257
|
||||
<secDNS:protocol> 1 Allowed values: 3
|
||||
<secDNS:alg> 1 Allowed values: 3, 5, 6, 7, 8, 10, 13, 14
|
||||
<secDNS:pubKey> 1 Public key
|
||||
<eis:extdata> 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document. Required if registrant is changing.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document. Required if registrant is changing.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-updates-domain-and-adds-objects)
|
||||
|
@ -100,14 +100,14 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<delete> 1
|
||||
<delete> 1
|
||||
<domain:delete> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
Optional attribute: verified="yes/no"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<extension> 1
|
||||
<extension> 1
|
||||
<eis:extdata> 1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-deletes-domain)
|
||||
|
@ -116,9 +116,9 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<info> 1
|
||||
<info> 1
|
||||
<domain:info> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
Attribute: hosts="all / del / sub / none"
|
||||
<domain:authInfo> 0-1 Required if registrar is not the owner of the domain.
|
||||
<domain:pw> 1 Domain transfer code. Attribute: roid="String"
|
||||
|
@ -130,18 +130,18 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<renew> 1
|
||||
<renew> 1
|
||||
<domain:renew> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:curExpDate> 1 Current expiry date (ISO8601 format)
|
||||
<domain:period> 0-1 Registration period for domain.
|
||||
<domain:period> 0-1 Registration period for domain.
|
||||
Must add up to 3m, 6m, 9m, 1y, 2y, 3y, 4y, 5y, 6y, 7y, 8y, 9y, 10y.
|
||||
Attribute: unit="y/m/d"
|
||||
Default value is 1 year.
|
||||
<extension> 0-1
|
||||
<extension> 0-1
|
||||
<eis:extdata> 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-renews-a-domain)
|
||||
|
@ -152,13 +152,13 @@ Domain name mapping protocol short version:
|
|||
----------------------- ------- -----------------
|
||||
<transfer> 1 Attribute: op="request/query/approve/reject/cancel"
|
||||
<domain:transfer> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:authInfo> 1
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:authInfo> 1
|
||||
<domain:pw> 1 Domain transfer code. Attribute: roid="String"
|
||||
<extension> 0-1
|
||||
<extension> 0-1
|
||||
<eis:extdata> 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||
Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-transfers-a-domain)
|
||||
|
@ -167,9 +167,9 @@ Domain name mapping protocol short version:
|
|||
|
||||
Field name Min-max Field description
|
||||
----------------------- ------- -----------------
|
||||
<check> 1
|
||||
<check> 1
|
||||
<domain:check> 1 Attribute: xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<domain:name> 1 Domain name. Can contain unicode characters.
|
||||
<clTRID> 0-1 Client transaction id
|
||||
|
||||
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-checks-a-domain)
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
<simpleType name="legalDocEnumType">
|
||||
<restriction base="token">
|
||||
<enumeration value="pdf"/>
|
||||
<enumeration value="asice"/>
|
||||
<enumeration value="bdoc"/>
|
||||
<enumeration value="ddoc"/>
|
||||
<enumeration value="zip"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue