From 1b77a176c938f58e9c5119aa68b7354357efeb0c Mon Sep 17 00:00:00 2001 From: Sanjip Thapa Date: Tue, 15 Apr 2025 13:56:53 +0200 Subject: [PATCH] added rrpproxy ext to get contact verified/validation in contact info response --- .../rrpproxyEppInfoContactResponse.php | 49 +++++++++++++++++++ .../EPP/eppExtensions/keysys-1.0/includes.php | 5 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Protocols/EPP/eppExtensions/keysys-1.0/eppResponses/rrpproxyEppInfoContactResponse.php diff --git a/Protocols/EPP/eppExtensions/keysys-1.0/eppResponses/rrpproxyEppInfoContactResponse.php b/Protocols/EPP/eppExtensions/keysys-1.0/eppResponses/rrpproxyEppInfoContactResponse.php new file mode 100644 index 00000000..df3829d7 --- /dev/null +++ b/Protocols/EPP/eppExtensions/keysys-1.0/eppResponses/rrpproxyEppInfoContactResponse.php @@ -0,0 +1,49 @@ + + + + 1 + 1 + + + + */ + +class rrpproxyEppInfoContactResponse extends eppInfoContactResponse { + function __construct() { + parent::__construct(); + } + + + /** + * + * @return bool|null + */ + public function getValidated() { + $xpath = $this->xPath(); + $result = $xpath->query('/epp:epp/epp:response/epp:extension/keysys:resData/keysys:contactInfData/keysys:validated'); + if ($result->length > 0) { + return $result->item(0)->nodeValue == '1' ? true : false; + } else { + return null; + } + } + + /** + * + * @return bool|null + */ + public function getVerified() { + $xpath = $this->xPath(); + $result = $xpath->query('/epp:epp/epp:response/epp:extension/keysys:resData/keysys:contactInfData/keysys:verified'); + if ($result->length > 0) { + return $result->item(0)->nodeValue == '1' ? true : false; + } else { + return null; + } + } +} + diff --git a/Protocols/EPP/eppExtensions/keysys-1.0/includes.php b/Protocols/EPP/eppExtensions/keysys-1.0/includes.php index 67578d34..976ba077 100644 --- a/Protocols/EPP/eppExtensions/keysys-1.0/includes.php +++ b/Protocols/EPP/eppExtensions/keysys-1.0/includes.php @@ -14,4 +14,7 @@ $this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppRenewalmodeRequest', 'Metaregistrar\EPP\eppUpdateDomainResponse'); include_once(dirname(__FILE__) . '/eppRequests/rrpproxyEppTransferDomainRequest.php'); -$this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppTransferDomainRequest', 'Metaregistrar\EPP\eppTransferResponse'); \ No newline at end of file +$this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppTransferDomainRequest', 'Metaregistrar\EPP\eppTransferResponse'); + +include_once(dirname(__FILE__) . '/eppResponses/rrpproxyEppInfoContactResponse.php'); +$this->addCommandResponse('Metaregistrar\EPP\eppInfoContactRequest', 'Metaregistrar\EPP\rrpproxyEppInfoContactResponse'); \ No newline at end of file