Skip to content

Commit

Permalink
Merge pull request #7 from DK-Hostmaster/orderconfirmation_token
Browse files Browse the repository at this point in the history
Added first shot at new extension dkhm:url
  • Loading branch information
jonasbn authored May 25, 2018
2 parents 6f92991 + f88b84c commit 85f7ad7
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 2 deletions.
149 changes: 149 additions & 0 deletions dkhm-2.3.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8"?>
<schema targetNamespace="urn:dkhm:params:xml:ns:dkhm-2.1"
xmlns:dkhm="urn:dkhm:params:xml:ns:dkhm-2.1"
xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<!--
Import common element types.
-->

<import namespace="urn:ietf:params:xml:ns:eppcom-1.0" schemaLocation="eppcom-1.0.xsd"/>
<import namespace="urn:ietf:params:xml:ns:contact-1.0" schemaLocation="contact-1.0.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.1" schemaLocation="dkhm-1.1.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.2" schemaLocation="dkhm-1.2.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.3" schemaLocation="dkhm-1.3.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.4" schemaLocation="dkhm-1.4.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.5" schemaLocation="dkhm-1.5.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-1.6" schemaLocation="dkhm-1.6.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-2.0" schemaLocation="dkhm-2.0.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-2.0" schemaLocation="dkhm-2.1.xsd"/>
<import namespace="urn:dkhm:params:xml:ns:dkhm-2.0" schemaLocation="dkhm-2.2.xsd"/>
<annotation>
<documentation>Extensible Provisioning Protocol v1.0 provisioning schema. DKHM extension v2.1</documentation>
</annotation>
<!--
Child elements found in EPP commands.
-->

<element name="userType" type="dkhm:userType" />
<element name="EAN" type="dkhm:EAN" />
<element name="CVR" type="dkhm:CVR" />
<element name="mobilephone" type="dkhm:mobilephone" />
<element name="secondaryEmail" type="dkhm:secondaryEmail" />
<element name="pnumber" type="dkhm:pnumber" />
<element name="contact" type="dkhm:contact" />
<element name="trackingNo" type="dkhm:trackingNo" />
<element name="domainAdvisory" type="dkhm:domainAdvisory" />
<element name="orderconfirmationToken" type="dkhm:orderconfirmationToken" />
<element name="domain_confirmed" type="dkhm:domain_confirmed" />
<element name="contact_validated" type="dkhm:contact_validated" />
<element name="registrant_validated" type="dkhm:registrant_validated" />
<element name="requestedNsAdmin" type="dkhm:requestedNsAdmin" />

<!--
Utility types.
-->

<!-- custom: contact mobilephone -->
<complexType name="mobilephone">
<complexContent>
<extension base="contact:e164Type"/>
</complexContent>
</complexType>

<!-- custom: contact secondary email -->
<simpleType name="secondaryEmail">
<restriction base="eppcom:minTokenType" />
</simpleType>

<!-- custom: host contact -->
<simpleType name="contact">
<restriction base="eppcom:clIDType" />
</simpleType>

<!-- custom: trackingNo -->
<simpleType name="trackingNo">
<restriction base="token" />
</simpleType>

<!-- custom: contact_validated -->
<simpleType name="contact_validated">
<restriction base="token" />
</simpleType>

<!-- custom: registrant_validated -->
<simpleType name="registrant_validated">
<restriction base="token" />
</simpleType>

<!-- custom: domain_confirmed -->
<simpleType name="domain_confirmed">
<restriction base="token" />
</simpleType>

<!-- custom: domainAdvisory -->
<complexType name="domainAdvisory">
<attribute name="domain" type="token"/>
<attribute name="advisory" type="token"/>
<attribute name="date" type="dateTime"/>
</complexType>

<!-- custom: Usertype enumeration -->
<simpleType name="userType">
<restriction base="token">
<enumeration value="C" />
<enumeration value="P" />
<enumeration value="A" />
<enumeration value="I" />
<enumeration value="company" />
<enumeration value="public_organization" />
<!-- <enumeration value="public_organisation" /> -->
<enumeration value="association" />
<enumeration value="individual" />
</restriction>
</simpleType>

<!-- custom: CVR -->
<simpleType name="CVR">
<restriction base="token">
<maxLength value="50" />
</restriction>
</simpleType>

<!-- custom: pnumber -->
<simpleType name="pnumber">
<restriction base="token">
<maxLength value="10" />
</restriction>
</simpleType>

<!-- custom: EAN -->
<simpleType name="EAN">
<restriction base="token">
<maxLength value="30" />
<!-- 13 according to international std? -->
</restriction>
</simpleType>

<!-- custom: orderconfirmationToken -->
<simpleType name="orderconfirmationToken">
<restriction base="token" />
</simpleType>

<!-- custom: requestedNsAdmin -->
<simpleType name="requestedNsAdmin">
<restriction base="eppcom:clIDType" />
</simpleType>

<!-- custom: url -->
<simpleType name="orderconfirmationToken">
<restriction base="token" />
</simpleType>


<!--
End of schema.
-->
</schema>
21 changes: 21 additions & 0 deletions dkhm-epp-1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="urn:ietf:params:xml:ns:epp-1.0"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<!-- redefining password (pwType) definition -->
<redefine schemaLocation="epp-1.0.xsd">
<simpleType name="pwType">
<restriction base="token">
<minLength value="8"/>
<maxLength value="64"/>
</restriction>
</simpleType>
</redefine>

<element name="pwType" type="pwType" />

<!--
End of schema.
-->
</schema>
4 changes: 2 additions & 2 deletions epp.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
xmlns:host="urn:ietf:params:xml:ns:host-1.0"
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"
xmlns:dkhm="urn:dkhm:params:xml:ns:dkhm-2.2"
xmlns:dkhm="urn:dkhm:params:xml:ns:dkhm-2.3"
xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
xmlns="http://www.w3.org/2001/XMLSchema"
Expand All @@ -17,7 +17,7 @@
<import namespace="urn:ietf:params:xml:ns:domain-1.0" schemaLocation="domain-1.0.xsd" />
<import namespace="urn:ietf:params:xml:ns:host-1.0" schemaLocation="host-1.0.xsd" />
<import namespace="urn:ietf:params:xml:ns:contact-1.0" schemaLocation="contact-1.0.xsd" />
<import namespace="urn:dkhm:params:xml:ns:dkhm-2.2" schemaLocation="dkhm-2.2.xsd" />
<import namespace="urn:dkhm:params:xml:ns:dkhm-2.3" schemaLocation="dkhm-2.3.xsd" />
<import namespace="urn:ietf:params:xml:ns:secDNS-1.1" schemaLocation="secDNS-1.1.xsd" />
<!--
End of schema.
Expand Down

0 comments on commit 85f7ad7

Please sign in to comment.