The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::SRS::Domain::Create - Class representing an SRS DomainCreate transaction

SYNOPSIS

  my $create = XML::SRS::DomainCreate->new(
        domain_name => 'foo.co.nz',
        term => 1,
        action_id => "1234",
        contact_registrant => {
            name => "Joe Bloggs",
            email => "blah@foo.co.nz",
            phone => {
                subscriber => "444 4444",
                ndc => 4,
                cc => 64,
            },
            address => {
                address1 => "555 My Street",
                address2 => "Burbsville",
                city => "Lala Land",
                postcode => "12345",
                cc => "NZ",
            },
        },
        nameservers => [
           {
              fqdn => "ns1.foo.net.nz",
              ipv6_addr => "2404:130:0:10::34:0",
              ipv4_addr => "202.78.240.34",
           },
           {
              fqdn => "ns2.foo.net.nz",
              ipv6_addr => "2404:130:2000:1::1",
              ipv4_addr => "202.78.244.33",
           },
       ],
           dns_sec => [
           {
              algorithm => 5,
              key_tag => 555,
              digest => "3FC2FB591B6089F454B90A529C760E3F92F28399",
              digest_type => 1,
           },
           {
              algorithm => 5,
              key_tag => 444,
              digest => "3A54F693DA1D3FC6073B3D065FEDFAC000610CE83C7D2A084DF883E0B308DCA6",
              digest_type => 2,
           }
        ],        
  );

DESCRIPTION

This class represents an SRS DomainCreate request. The root XML element of this class is 'DomainCreate'.

ATTRIBUTES

Each attribute of this class has an accessor/mutator of the same name as the attribute. Additionally, they can be passed as parameters to the constructor.

domain_name

Required. Must be of type XML::SRS::DomainName. Maps to the XML attribute 'DomainName'

domain_name_unicode

Must be of type XML::SRS::DomainName. Maps to the XML attribute 'DomainNameUnicode'

action_id

Required. Must be of type XML::SRS::UID. Maps to the XML attribute 'ActionId'

contact_admin

Must be of type XML::SRS::Contact. Maps to the XML element 'AdminContact'

contact_technical

Must be of type XML::SRS::Contact. Maps to the XML element 'TechnicalContact'

contact_registrant

Required. Must be of type XML::SRS::Contact. Maps to the XML element 'RegistrantContact'

dns_sec

Must be of type XML::SRS::DS::List. Maps to the XML element 'DNSSEC'

nameservers

Must be of type XML::SRS::Server::List. Maps to the XML element 'NameServers'

term

Required. Must be of type XML::SRS::Term. Maps to the XML attribute 'Term'

audit

Must be of type Str. Maps to the XML element 'AuditText'

delegate

Must be of type XML::SRS::Boolean. Maps to the XML attribute 'Delegate'

registrant_ref

Must be of type XML::SRS::UID. Maps to the XML attribute 'RegistrantRef'

METHODS

new(%params)

Construct a new XML::SRS::Request object. %params specifies the initial values of the attributes.

COMPOSED OF

XML::SRS::Action