WWW::eNom::DomainRequest::Registration - Domain Registration Request
use WWW::eNom; use WWW::eNom::Contact; use WWW::eNom::DomainRequest::Registration; my $api = WWW::eNom->new( ... ); my $contact = WWW::eNom::Contact->new( ... ); # Register a New Domain my $registration_request = WWW::eNom::DomainRequest::Registration->new( name => 'drzigman.com', ns => [ 'ns1.enom.com', 'ns2.enom.com' ], is_ns_fail_fatal => 0, # Optional, defaults to false is_locked => 1, # Optional, defaults to true is_private => 1, # Optional, defaults to false is_auto_renew => 0, # Optional, defaults to false is_queueable => 0, # Optional, defaults to false years => 1, nexus_purpose => 'P1', # Only for .us domains nexus_category => 'C11', # Only for .us domains registrant_contact => $contact, technical_contact => $contact, admin_contact => $contact, billing_contact => $contact, ); # Real way of using this module to register a domain my $domain = $api->register_domain( request => $registration_request ); # Example showing construct_request, contrived! Use register_domain in real life! my $response = $api->submit({ method => 'Purchase', params => $registration_request->construct_request(), });
WWW::eNom::DomainRequest::Registration is a representation of all the data needed in order to complete a domain registration. It is used when requesting a new registration from eNom.
The FQDN to register.
ArrayRef of Domain Names that are to be authoritative nameservers for this domain.
Predicate of has_ns. If not specified, eNom's nameservers (or whatever you specially configured in your eNom Reseller Panel) will be used.
Boolean that defaults to false. If set to true, the provided ns values must resolve otherwise the domain registration request will fail.
Boolean that defaults to true. Indicates if the domain should be locked, preventing transfers.
Boolean that defaults to false. If true, the WPPS Service (what eNom calls Privacy Protection) will automatically be purchased and enabled.
It's worth noting that not all domains permit domain privacy. If you attempt to purchase a domain with privacy for one of these domains (such as a .us registration) construction of the request will croak.
Boolean that defaults to false. If true, this domain will be automatically renewed by eNom before it expires.
Boolean that defaults to false. If true, eNom will "queue" domain registration requests that it can not be complete in real time (example: the registry connectivity is down).
The number of years to register the domain for. Keep in mind there are limits (based on the Public Suffix) but generally this is a Positive Integer between 1 and 10.
This is the Domain Name Application Purpose Code, the reason this domain was registered and a bit about it's intended usage. This should be populated ONLY for .us domain registrations. The descriptions come from http://www.whois.us/whois-gui/US/faqs.html.
Must be one of the following 2 character values:
This is the Nexus Code, it contains information about the contact and their relationship with respect to US residency. This should be populated ONLY for .us domain registrations. The descriptions come from http://www.whois.us/whois-gui/US/faqs.html.
A WWW::eNom::Contact for the Registrant Contact.
A WWW::eNom::Contact for the Admin Contact.
A WWW::eNom::Contact for the Technical Contact.
A WWW::eNom::Contact for the Billing Contact.
NOTE eNom actually calls this the AuxBilling contact since the primary billing contact is the reseller's information.
my $registration_request = WWW::eNom::DomainRequest::Registration->new( ... ); my $response = $api->submit({ method => 'Purchase', params => $registration_request->construct_request(), });
Converts $self into a HashRef suitable for the Purchase of a Domain Name.
To install WWW::eNom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::eNom
CPAN shell
perl -MCPAN -e shell install WWW::eNom
For more information on module installation, please visit the detailed CPAN module installation guide.