Net::E...Contact(3pm)

πŸ“¦
version 0.28 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Net::EPP::Frame::Command::Create::Contact β€” it's giving "an instance of Net::EPP::Frame::Command::Create for contact objects." πŸ’… No cap, that's literally what it is.


🌸 SYNOPSIS 🌸

okay bestie, here's the vibe:

use Net::EPP::Frame::Command::Create::Contact;
use strict;

my $create = Net::EPP::Frame::Command::Create::Contact->new;
$create->setContact('contact-id);

print $create->toString(1);

And the way that this results in an XML document like this?? Obsessed:

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
  epp-1.0.xsd">
    <command>
      <check>
        <contact:create
          xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
          xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0
          contact-1.0.xsd">
            <contact:id>example-1.tldE<lt>/contact:id>
        </contact:create>
      </check>
      <clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE<gt>
    </command>
</epp>

she's built different fr fr πŸ¦‹


πŸ‘‘ OBJECT HIERARCHY πŸ‘‘

L<XML::LibXML::Node>
+----L<XML::LibXML::Document>
    +----L<Net::EPP::Frame>
        +----L<Net::EPP::Frame::Command>
            +----L<Net::EPP::Frame::Command::Create>
                +----L<Net::EPP::Frame::Command::Create::Contact>

look at that family tree. generational talent 🌈


πŸ’– METHODS πŸ’–

  • my $element = $frame->setContact($contact_id); β€” bestie, this sets the contact ID of the object to be created. And guess what it returns? The "<contact:name>" element. slay. ✨

lowkey important: $contact_id is the contact ID you're handing over β€” the method does the setting, and you get the "<contact:name>" element back. that's the whole deal. 🫢

written by the User Contributed Perl Documentation girlies πŸ’– β€” perl v5.40.1, dated 2025-04-19. mwah, take care of her, she's iconic. πŸ’…πŸŽ€

πŸ“¦ where this page comes from