« blib/lib/WWW/LogicBoxes/DomainAvailability.pm
↑ Summary
blib/lib/WWW/LogicBoxes/PrivateNameServer.pm »
| 1 | package WWW::LogicBoxes::DomainRequest; | ||
| 2 | |||
| 3 | 44 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 44 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 44 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 44 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 44 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 44 | ▶ | use WWW::LogicBoxes::Types qw( Bool DomainName DomainNames Int InvoiceOption ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 44 | our $VERSION = '1.1.0'; # VERSION | |
| 13 | # ABSTRACT: Abstract Base Class for Domain Registration/Transfer Requests | ||
| 14 | |||
| 15 | 44 | has name => ( | |
| 16 | is => 'ro', | ||
| 17 | isa => DomainName, | ||
| 18 | required => 1, | ||
| 19 | ); | ||
| 20 | |||
| 21 | 44 | has customer_id => ( | |
| 22 | is => 'ro', | ||
| 23 | isa => Int, | ||
| 24 | required => 1, | ||
| 25 | ); | ||
| 26 | |||
| 27 | 44 | has ns => ( | |
| 28 | is => 'ro', | ||
| 29 | isa => DomainNames, | ||
| 30 | required => 1, | ||
| 31 | ); | ||
| 32 | |||
| 33 | 44 | has registrant_contact_id => ( | |
| 34 | is => 'ro', | ||
| 35 | isa => Int, | ||
| 36 | required => 1, | ||
| 37 | ); | ||
| 38 | |||
| 39 | 44 | has admin_contact_id => ( | |
| 40 | is => 'ro', | ||
| 41 | isa => Int, | ||
| 42 | required => 1, | ||
| 43 | ); | ||
| 44 | |||
| 45 | 44 | has technical_contact_id => ( | |
| 46 | is => 'ro', | ||
| 47 | isa => Int, | ||
| 48 | required => 1, | ||
| 49 | ); | ||
| 50 | |||
| 51 | 44 | has billing_contact_id => ( | |
| 52 | is => 'ro', | ||
| 53 | isa => Int, | ||
| 54 | required => 1, | ||
| 55 | ); | ||
| 56 | |||
| 57 | 44 | has is_private => ( | |
| 58 | is => 'ro', | ||
| 59 | isa => Bool, | ||
| 60 | default => 0, | ||
| 61 | ); | ||
| 62 | |||
| 63 | 44 | has invoice_option => ( | |
| 64 | is => 'ro', | ||
| 65 | isa => InvoiceOption, | ||
| 66 | default => 'NoInvoice', | ||
| 67 | ); | ||
| 68 | |||
| 69 | 44 | __PACKAGE__->meta->make_immutable; | |
| 70 | |||
| 71 | 44 | 1; | |
| 72 | |||
| 73 | __END__ | ||
| 74 | =pod | ||
| 75 | |||
| 76 | =head1 NAME | ||
| 77 | |||
| 78 | WWW::LogicBoxes::DomainRequest - Abstract Base Case for Domain Registration and Transfer Requests | ||
| 79 | |||
| 80 | =head1 DESCRIPTION | ||
| 81 | |||
| 82 | WWW::LogicBoxes::DomainRequest is an abstract base class that is extended for usage in L<WWW::LogicBoxes::DomainRequest::Registration> and L<WWW::LogicBoxes::DomainRequest::Transfer>. It should not be instantiated directly. | ||
| 83 | |||
| 84 | =head1 ATTRIBUTES | ||
| 85 | |||
| 86 | =head2 B<name> | ||
| 87 | |||
| 88 | The full domain name. | ||
| 89 | |||
| 90 | =head2 B<customer_id> | ||
| 91 | |||
| 92 | L<LogicBoxes Customer|WWW::LogicBoxes::Customer> id that is purchasing this domain. | ||
| 93 | |||
| 94 | =head2 B<ns> | ||
| 95 | |||
| 96 | Array Ref of domain names that should be used as the authoritive nameservers. | ||
| 97 | |||
| 98 | =head2 B<registrant_contact_id> | ||
| 99 | |||
| 100 | A L<Contact|WWW::LogicBoxes::Contact> id for the Registrant. | ||
| 101 | |||
| 102 | =head2 B<admin_contact_id> | ||
| 103 | |||
| 104 | A L<Contact|WWW::LogicBoxes::Contact> id for the Admin. | ||
| 105 | |||
| 106 | =head2 B<technical_contact_id> | ||
| 107 | |||
| 108 | A L<Contact|WWW::LogicBoxes::Contact> id for the Technical. | ||
| 109 | |||
| 110 | =head2 B<billing_contact_id> | ||
| 111 | |||
| 112 | A L<Contact|WWW::LogicBoxes::Contact> id for the Billing. | ||
| 113 | |||
| 114 | =head2 is_private | ||
| 115 | |||
| 116 | Boolean indicating if this domain uses WHOIS Privacy. Defaults to false. | ||
| 117 | |||
| 118 | =head2 invoice_option | ||
| 119 | |||
| 120 | Indicates to L<LogicBoxes|http://www.logicboxes.com> how invoicing of the L<customer|WWW::LogicBoxes::Customer> for this domain should occur. It must be one of the following values: | ||
| 121 | |||
| 122 | =over 4 | ||
| 123 | |||
| 124 | =item NoInvoice | ||
| 125 | |||
| 126 | Do not generate an invoice, just process the order. | ||
| 127 | |||
| 128 | =item PayInvoice | ||
| 129 | |||
| 130 | Generate an invoice and check the L<customer's|WWW::LogicBoxes::Customer> account balance. If there are sufficent funds pay the invoice and process the order. Otherwise, hold the order in a pending status. | ||
| 131 | |||
| 132 | =item KeepInvoice | ||
| 133 | |||
| 134 | Generate an invoice for the L<customer|WWW::LogicBoxes::Customer> to pay at some later point but process the order right now. | ||
| 135 | |||
| 136 | =back | ||
| 137 | |||
| 138 | The default value is 'NoInvoice'. | ||
| 139 | |||
| 140 | =cut | ||