metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 159 forks source link

RRPproxy keysys:whois-privacy extension #98

Closed sburina closed 7 years ago

sburina commented 7 years ago

Hello!

Could you please implement this extension for RRPproxy: keysys:whois-privacy, and appropriate getters/setters?

The full example of an update request:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:
xml:ns:epp-1.0 epp-1.0.xsd">
  <command>
    <update>
      <domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd">
        <domain:name>test.com</domain:name>
        <domain:add>
          <domain:contact type="admin">P-ABCD123</domain:contact>
          <domain:contact type="billing">P-ABCD123</domain:contact>
          <domain:contact type="tech">P-ABCD123</domain:contact>
        </domain:add>
        <domain:rem>
          <domain:contact type="admin">P-ABCD1234</domain:contact>
          <domain:contact type="billing">P-ABCD1234</domain:contact>
          <domain:contact type="tech">P-ABCD1234</domain:contact>
        </domain:rem>
        <domain:chg>
          <domain:registrant>P-AB456</domain:registrant>
        </domain:chg>
      </domain:update>
    </update>
    <extension>
      <keysys:update xmlns:keysys="http://www.key-systems.net/epp/keysys-1.0">
        <keysys:domain>
          <keysys:whois-privacy>1</keysys:whois-privacy>
        </keysys:domain>
      </keysys:update>
    </extension>
    <clTRID>prod:123:1234567890</clTRID>
  </command>
</epp>

Thank you!

metaregistrar commented 7 years ago

Added two functions: rrpproxyEppWhoisPrivacyRequest and rrpproxyEppTrusteeRequest

both function take a boolean parameter: on or off