| 1 | |||||||||||
| 2 | package XML::SRS::Domain; | ||||||||||
| 3 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | $XML::SRS::Domain::VERSION = '0.09'; | |||||||||
| 5 | } | ||||||||||
| 6 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use PRANG::Graph; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use XML::SRS::Types; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | has_attr 'name' => | ||||||||||
| 11 | is => "ro", | ||||||||||
| 12 | isa => "XML::SRS::DomainName", | ||||||||||
| 13 | xml_name => "DomainName", | ||||||||||
| 14 | ; | ||||||||||
| 15 | |||||||||||
| 16 | has_attr 'name_unicode' => | ||||||||||
| 17 | is => "ro", | ||||||||||
| 18 | isa => "Str", | ||||||||||
| 19 | xml_name => "DomainNameUnicode", | ||||||||||
| 20 | xml_required => 0, | ||||||||||
| 21 | ; | ||||||||||
| 22 | |||||||||||
| 23 | has_attr 'name_unicode_hex' => | ||||||||||
| 24 | is => "ro", | ||||||||||
| 25 | isa => "Str", | ||||||||||
| 26 | xml_name => "DomainNameUnicodeHex", | ||||||||||
| 27 | xml_required => 0, | ||||||||||
| 28 | ; | ||||||||||
| 29 | |||||||||||
| 30 | has_attr 'name_language' => | ||||||||||
| 31 | is => "ro", | ||||||||||
| 32 | isa => "Str", | ||||||||||
| 33 | xml_name => "DomainNameLanguage", | ||||||||||
| 34 | xml_required => 0, | ||||||||||
| 35 | ; | ||||||||||
| 36 | |||||||||||
| 37 | has_attr 'registrant_ref' => | ||||||||||
| 38 | is => "ro", | ||||||||||
| 39 | isa => "XML::SRS::UID", | ||||||||||
| 40 | xml_name => "RegistrantRef", | ||||||||||
| 41 | xml_required => 0, | ||||||||||
| 42 | ; | ||||||||||
| 43 | |||||||||||
| 44 | has_attr 'registrar_name' => | ||||||||||
| 45 | is => "ro", | ||||||||||
| 46 | isa => "Str", | ||||||||||
| 47 | xml_name => "RegistrarName", | ||||||||||
| 48 | xml_required => 0, | ||||||||||
| 49 | ; | ||||||||||
| 50 | |||||||||||
| 51 | has_attr 'status' => | ||||||||||
| 52 | is => "ro", | ||||||||||
| 53 | isa => "Str", | ||||||||||
| 54 | xml_name => "Status", | ||||||||||
| 55 | xml_required => 0, | ||||||||||
| 56 | ; | ||||||||||
| 57 | |||||||||||
| 58 | 0 | ▶ | sub is_available { | ||||||||
|
Subroutine
is_available: not called CC=2 SCAR=17.9
| |||||||||||
| 59 | 0 | my $self = shift; | |||||||||
| 60 | 0 | ▶ | $self->status eq "Available" ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | has_attr 'delegate' => | ||||||||||
| 64 | is => "ro", | ||||||||||
| 65 | isa => "XML::SRS::Boolean", | ||||||||||
| 66 | xml_name => "Delegate", | ||||||||||
| 67 | xml_required => 0, | ||||||||||
| 68 | ; | ||||||||||
| 69 | |||||||||||
| 70 | has_attr 'term' => | ||||||||||
| 71 | is => "ro", | ||||||||||
| 72 | isa => "XML::SRS::Term", | ||||||||||
| 73 | xml_name => "Term", | ||||||||||
| 74 | xml_required => 0, | ||||||||||
| 75 | ; | ||||||||||
| 76 | |||||||||||
| 77 | has_attr 'registrar_id' => | ||||||||||
| 78 | is => "ro", | ||||||||||
| 79 | isa => "XML::SRS::Number", | ||||||||||
| 80 | xml_name => "RegistrarId", | ||||||||||
| 81 | xml_required => 0, | ||||||||||
| 82 | ; | ||||||||||
| 83 | |||||||||||
| 84 | has_attr 'UDAI' => | ||||||||||
| 85 | is => "ro", | ||||||||||
| 86 | isa => 'Str', | ||||||||||
| 87 | xml_name => "UDAI", | ||||||||||
| 88 | xml_required => 0, | ||||||||||
| 89 | ; | ||||||||||
| 90 | |||||||||||
| 91 | # elements | ||||||||||
| 92 | has_element 'nameservers' => | ||||||||||
| 93 | is => 'ro', | ||||||||||
| 94 | isa => 'XML::SRS::Server::List', | ||||||||||
| 95 | xml_nodeName => 'NameServers', | ||||||||||
| 96 | xml_required => 0, | ||||||||||
| 97 | ; | ||||||||||
| 98 | |||||||||||
| 99 | has_element "dns_sec" => | ||||||||||
| 100 | is => "rw", | ||||||||||
| 101 | isa => "XML::SRS::DS::List", | ||||||||||
| 102 | xml_nodeName => "DNSSEC", | ||||||||||
| 103 | xml_required => 0, | ||||||||||
| 104 | ; | ||||||||||
| 105 | |||||||||||
| 106 | has_element 'contact_registrant' => | ||||||||||
| 107 | is => 'ro', | ||||||||||
| 108 | isa => 'XML::SRS::Contact', | ||||||||||
| 109 | xml_nodeName => 'RegistrantContact', | ||||||||||
| 110 | xml_required => 0, | ||||||||||
| 111 | coerce => 1, | ||||||||||
| 112 | ; | ||||||||||
| 113 | |||||||||||
| 114 | has_element 'contact_registrar_public' => | ||||||||||
| 115 | is => 'ro', | ||||||||||
| 116 | isa => 'XML::SRS::Contact', | ||||||||||
| 117 | xml_nodeName => 'RegistrarPublicContact', | ||||||||||
| 118 | xml_required => 0, | ||||||||||
| 119 | coerce => 1, | ||||||||||
| 120 | ; | ||||||||||
| 121 | |||||||||||
| 122 | has_element 'contact_admin' => | ||||||||||
| 123 | is => 'ro', | ||||||||||
| 124 | isa => 'XML::SRS::Contact', | ||||||||||
| 125 | xml_nodeName => 'AdminContact', | ||||||||||
| 126 | xml_required => 0, | ||||||||||
| 127 | coerce => 1, | ||||||||||
| 128 | ; | ||||||||||
| 129 | |||||||||||
| 130 | has_element 'contact_technical' => | ||||||||||
| 131 | is => 'ro', | ||||||||||
| 132 | isa => 'XML::SRS::Contact', | ||||||||||
| 133 | xml_nodeName => 'TechnicalContact', | ||||||||||
| 134 | xml_required => 0, | ||||||||||
| 135 | coerce => 1, | ||||||||||
| 136 | ; | ||||||||||
| 137 | |||||||||||
| 138 | has_element 'billed_until' => | ||||||||||
| 139 | is => 'ro', | ||||||||||
| 140 | isa => 'XML::SRS::TimeStamp', | ||||||||||
| 141 | xml_required => 0, | ||||||||||
| 142 | xml_nodeName => 'BilledUntil', | ||||||||||
| 143 | ; | ||||||||||
| 144 | |||||||||||
| 145 | has_element 'registered_date' => | ||||||||||
| 146 | is => 'ro', | ||||||||||
| 147 | isa => 'XML::SRS::TimeStamp', | ||||||||||
| 148 | xml_required => 0, | ||||||||||
| 149 | xml_nodeName => 'RegisteredDate', | ||||||||||
| 150 | ; | ||||||||||
| 151 | |||||||||||
| 152 | has_element 'cancelled_date' => | ||||||||||
| 153 | is => 'ro', | ||||||||||
| 154 | isa => 'XML::SRS::TimeStamp', | ||||||||||
| 155 | xml_required => 0, | ||||||||||
| 156 | xml_nodeName => 'CancelledDate', | ||||||||||
| 157 | ; | ||||||||||
| 158 | |||||||||||
| 159 | has_element 'locked_date' => | ||||||||||
| 160 | is => 'ro', | ||||||||||
| 161 | isa => 'XML::SRS::TimeStamp', | ||||||||||
| 162 | xml_required => 0, | ||||||||||
| 163 | xml_nodeName => 'LockedDate', | ||||||||||
| 164 | ; | ||||||||||
| 165 | |||||||||||
| 166 | has_element 'default_contacts' => | ||||||||||
| 167 | is => 'ro', | ||||||||||
| 168 | isa => 'XML::SRS::DefaultContacts', | ||||||||||
| 169 | xml_required => 0, | ||||||||||
| 170 | xml_nodeName => 'DefaultContacts', | ||||||||||
| 171 | ; | ||||||||||
| 172 | |||||||||||
| 173 | has_element 'audit' => | ||||||||||
| 174 | is => "rw", | ||||||||||
| 175 | isa => "XML::SRS::AuditDetails", | ||||||||||
| 176 | xml_nodeName => "AuditDetails", | ||||||||||
| 177 | predicate => "has_audit", | ||||||||||
| 178 | ; | ||||||||||
| 179 | |||||||||||
| 180 | 0 | ▶ | sub root_element { | ||||||||
|
Subroutine
root_element: not called CC=1 SCAR=6.9
| |||||||||||
| 181 | 0 | "Domain"; | |||||||||
| 182 | } | ||||||||||
| 183 | with 'XML::SRS::ActionResponse'; | ||||||||||
| 184 | |||||||||||
| 185 | 1; | ||||||||||
| 186 | |||||||||||
| 187 | __END__ | ||||||||||