Skip to content

Commit

Permalink
Merge pull request #382 from Baffos/master
Browse files Browse the repository at this point in the history
Eurid domain-ext Update
  • Loading branch information
metaregistrar authored May 16, 2024
2 parents b4ba728 + a134a85 commit 30c6575
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</domain:create>
</create>
<extension>
<domain-ext:create xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.3'>
<domain-ext:create xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.5'>
<domain-ext:contact type='onsite'>xxxxx</domain-ext:contact>
<domain-ext:contact type='reseller'>xxxxx</domain-ext:contact>
</domain-ext:create>
Expand All @@ -47,7 +47,7 @@ private function addContacts(eppDomain $domain) {
$created = false;
$create = $this->createElement('domain-ext:create');
$this->setNamespace('xmlns:domain','urn:ietf:params:xml:ns:domain-1.0',$create);
$this->setNamespace('xmlns:domain-ext','http://www.eurid.eu/xml/epp/domain-ext-2.3',$create);
$this->setNamespace('xmlns:domain-ext','http://www.eurid.eu/xml/epp/domain-ext-2.5',$create);

foreach ($domain->getContacts() as $contact) {
/* @var $contact \Metaregistrar\EPP\eppContactHandle */
Expand All @@ -64,4 +64,4 @@ private function addContacts(eppDomain $domain) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</domain:delete>
</delete>
<extension>
<domain-ext:delete xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.3'>
<domain-ext:delete xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.5'>
<domain-ext:schedule>
<domain-ext:delDate>2018-01-01T00:00:00.0Z</domain-ext:delDate>
</domain-ext:schedule>
Expand All @@ -31,11 +31,11 @@ function __construct(eppDomain $deleteinfo, $namespacesinroot = true, \DateTime

public function addEURIDExtension($delDate) {
$deleteext = $this->createElement('domain-ext:delete');
$deleteext->setAttribute('xmlns:domain-ext', 'http://www.eurid.eu/xml/epp/domain-ext-2.3');
$deleteext->setAttribute('xmlns:domain-ext', 'http://www.eurid.eu/xml/epp/domain-ext-2.5');
$scheduleext = $this->createElement('domain-ext:schedule');
$scheduleext->appendChild($this->createElement('domain-ext:delDate', $delDate));
$deleteext->appendChild($scheduleext);
$this->getExtension()->appendChild($deleteext);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</domain:transfer>
</transfer>
<extension>
<domain-ext:transfer xmlns:domain='urn:ietf:params:xml:ns:domain-1.0' xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.3'>
<domain-ext:transfer xmlns:domain='urn:ietf:params:xml:ns:domain-1.0' xmlns:domain-ext='http://www.eurid.eu/xml/epp/domain-ext-2.5'>
<domain-ext:request>
<domain-ext:contact type='billing'>c10</domain-ext:contact>
<domain-ext:contact type='tech'>c159</domain-ext:contact>
Expand All @@ -37,7 +37,7 @@ function __construct($operation, eppDomain $domain) {
private function addContacts(eppDomain $domain) {
$transfer = $this->createElement('domain-ext:transfer');
$this->setNamespace('xmlns:domain','urn:ietf:params:xml:ns:domain-1.0',$transfer);
$this->setNamespace('xmlns:domain-ext','http://www.eurid.eu/xml/epp/domain-ext-2.3',$transfer);
$this->setNamespace('xmlns:domain-ext','http://www.eurid.eu/xml/epp/domain-ext-2.5',$transfer);
$request = $this->createElement('domain-ext:request');

if($domain->getRegistrant() != "") {
Expand Down Expand Up @@ -72,4 +72,4 @@ private function addContacts(eppDomain $domain) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
*
*
* <extension>
<domain-ext-2.3:infData>
<domain-ext-2.3:onHold>false</domain-ext-2.3:onHold>
<domain-ext-2.3:quarantined>true</domain-ext-2.3:quarantined>
<domain-ext-2.3:suspended>false</domain-ext-2.3:suspended>
<domain-ext-2.3:seized>false</domain-ext-2.3:seized>
<domain-ext-2.3:availableDate>2021-07-11T10:35:00.000Z</domain-ext-2.3:availableDate>
<domain-ext-2.3:deletionDate>2021-06-01T10:35:05.113Z</domain-ext-2.3:deletionDate>
<domain-ext-2.5:infData>
<domain-ext-2.5:onHold>false</domain-ext-2.5:onHold>
<domain-ext-2.5:quarantined>true</domain-ext-2.5:quarantined>
<domain-ext-2.5:suspended>false</domain-ext-2.5:suspended>
<domain-ext-2.5:seized>false</domain-ext-2.5:seized>
<domain-ext-2.5:availableDate>2021-07-11T10:35:00.000Z</domain-ext-2.5:availableDate>
<domain-ext-2.5:deletionDate>2021-06-01T10:35:05.113Z</domain-ext-2.5:deletionDate>
*/

class euridEppInfoDomainResponse extends eppInfoDomainResponse {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$this->addExtension('domain-ext', 'http://www.eurid.eu/xml/epp/domain-ext-2.3');
$this->addExtension('domain-ext', 'http://www.eurid.eu/xml/epp/domain-ext-2.5');

include_once(dirname(__FILE__) . '/eppRequests/euridEppTransferDomainRequest.php');
$this->addCommandResponse('Metaregistrar\EPP\euridEppTransferDomainRequest', 'Metaregistrar\EPP\eppTransferResponse');
Expand Down
2 changes: 1 addition & 1 deletion Registries/euridEppConnection/eppConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function __construct($logging = false, $settingsfile = null) {
parent::enableDnssec();
parent::setServices(array('urn:ietf:params:xml:ns:domain-1.0' => 'domain', 'urn:ietf:params:xml:ns:contact-1.0' => 'contact','http://www.eurid.eu/xml/epp/registrarFinance-1.0'=>'registrar'));
parent::useExtension('authInfo-1.1');
parent::useExtension('domain-ext-2.3');
parent::useExtension('domain-ext-2.5');
parent::useExtension('contact-ext-1.3');
parent::useExtension('registrarFinance-1.0');
parent::useExtension('poll-1.2');
Expand Down

0 comments on commit 30c6575

Please sign in to comment.