WWW::LogicBoxes::DomainRequest::Registration - Representation of Domain Registration Request
use WWW::LogicBoxes; use WWW::LogicBoxes::Customer; use WWW::LogicBoxes::Contact; use WWW::LogicBoxes::Domain; use WWW::LogicBoxes::DomainRequest::Registration; my $logic_boxes = WWW::LogicBoxes->new( ... ); my $customer = WWW:::LogicBoxes::Customer->new( ... ); # Valid LogicBoxes Customer my $registrant_contact = WWW::LogicBoxes::Contact->new( ... ); # Valid LogicBoxes Contact my $admin_contact = WWW::LogicBoxes::Contact->new( ... ); # Valid LogicBoxes Contact my $technical_contact = WWW::LogicBoxes::Contact->new( ... ); # Valid LogicBoxes Contact my $billing_contact = WWW::LogicBoxes::Contact->new( ... ); # Valid LogicBoxes Contact my $registration_request = WWW::LogicBoxes::DomainRequest::Registration->new( name => 'test-domain.com', years => 1, customer_id => $customer->id, ns => [ 'ns1.logicboxes.com', 'ns2.logicboxes.com' ], registrant_contact_id => $registrant_contact->id, admin_contact_id => $admin_contact->id, technical_contact_id => $technical_contact->id, billing_contact_id => $billing_contact->id, invoice_option => 'NoInvoice', ); my $registered_domain = $logic_boxes->register_domain( request => $registration_request );
WWW::LogicBoxes::DomainRequest
WWW::LogicBoxes::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 LogicBoxes.
All of the existing WWW::LogicBoxes::DomainRequest attributes remain unchanged with one addition attribute.
The number of years to register this domain for.
This method is used internally, it's fairly unlikely that consumers will ever call it directly.
my $logic_boxes = WWW::LogicBoxes->new( ... ); my $registration_request = WWW::LogicBoxes::DomainRequest::Registration->new( ... ); my $response = $logic_boxes->submit({ method => 'domains__register', params => $registration_request->consturct_request(), });
Converts $self into a HashRef suitable for requesting a domain registration with LogicBoxes.
To install WWW::LogicBoxes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::LogicBoxes
CPAN shell
perl -MCPAN -e shell install WWW::LogicBoxes
For more information on module installation, please visit the detailed CPAN module installation guide.