NAME
WWW::LogicBoxes::DomainRequest::Registration - Representation of Domain Registration Request
SYNOPSIS
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 );
EXTENDS
WWW::LogicBoxes::DomainRequest
DESCRIPTION
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.
ATTRIBUTES
All of the existing WWW::LogicBoxes::DomainRequest attributes remain unchanged with one addition attribute.
years
The number of years to register this domain for.
METHODS
This method is used internally, it's fairly unlikely that consumers will ever call it directly.
construct_request
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.