Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add possibility to send in eid verified element in domain create command #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/command_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type DomainCreate struct {
Registrant string `xml:"registrant"`
DsData []*DsData `xml:"dsData"`
RegistryLock string `xml:"unlock"`
EIDVerified bool `xml:"eid"`
ClTrID string `xml:"clTrID"`
}

Expand Down
1 change: 0 additions & 1 deletion pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ var CommandConfig = []*Command{
"urn:ietf:params:xml:ns:domain-1.0",
},
ExtensionNamespaces: []string{
"urn:ietf:params:xml:ns:secDNS-1.0",
"urn:ietf:params:xml:ns:secDNS-1.1",
"urn:se:iis:xml:epp:iis-1.2",
"urn:se:iis:xml:epp:registryLock-1.0",
Expand Down
5 changes: 3 additions & 2 deletions pkg/templates/domain_create.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<domain:registrant>{{.Registrant}}</domain:registrant>
</domain:create>
</create>
{{- if or .DsData .RegistryLock}}
<extension>
{{- if or .DsData .RegistryLock .EIDVerified}}
<extension xmlns:iis="urn:se:iis:xml:epp:iis-1.2" xsi:schemaLocation="urn:se:iis:xml:epp:iis-1.2 iis-1.2.xsd">
{{- if .DsData}}
<secDNS:create xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xsi:schemaLocation="urn:ietf:params:xml:ns:secDNS-1.1 secDNS-1.1.xsd">
{{- range $d := .DsData}}
Expand All @@ -50,6 +50,7 @@
<rl:unlock>{{.RegistryLock}}</rl:unlock>
</rl:lock>
{{- end}}
<iis:eid verified="{{BoolToInt .EIDVerified}}"/>
</extension>
{{- end}}
{{- if .ClTrID}}
Expand Down
6 changes: 6 additions & 0 deletions pkg/validation/xsd/iis-1.2.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ $LastChangedBy: Ulrich Wisser $
</xs:sequence>
</xs:complexType>

<xs:element name="eid">
<xs:complexType>
<xs:attribute name="verified" type="xs:boolean" use="required"/>
</xs:complexType>
</xs:element>

<!-- **************************************************************** -->
<!-- extension to update -->
<!-- -->
Expand Down