File Coverage

blib/lib/XML/EPP/Contact/Create.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1              
2             package XML::EPP::Contact::Create;
3              
4 1     1   2457 use Moose;
  0            
  0            
5             use PRANG::Graph;
6              
7             sub root_element { 'create' }
8              
9             with 'XML::EPP::Contact::RQ', 'XML::EPP::Contact::Node';
10              
11             has_element 'id' =>
12             is => 'ro',
13             isa => 'XML::EPP::Common::clIDType',
14             ;
15              
16             use XML::EPP::Contact::PostalInfo;
17             has_element 'postal_info' =>
18             is => 'ro',
19             isa => 'ArrayRef[XML::EPP::Contact::PostalInfo]',
20             xml_nodeName => "postalInfo",
21             xml_min => 0,
22             xml_max => 2,
23             ;
24              
25             use XML::EPP::Contact::E164;
26             has_element 'voice' =>
27             is => 'ro',
28             isa => 'XML::EPP::Contact::E164',
29             xml_required => 0,
30             ;
31              
32             has_element 'fax' =>
33             is => 'ro',
34             isa => 'XML::EPP::Contact::E164',
35             xml_required => 0,
36             ;
37              
38             has_element 'email' =>
39             is => 'ro',
40             isa => 'XML::EPP::Common::minTokenType',
41             ;
42              
43             has_element 'auth_info' =>
44             is => 'ro',
45             isa => 'XML::EPP::Contact::AuthInfo',
46             xml_nodeName => 'authInfo',
47             required => 1,
48             ;
49              
50             has_element 'disclose' =>
51             is => 'ro',
52             isa => 'XML::EPP::Contact::Disclose',
53             xml_required => 0,
54             ;
55              
56             1;
57              
58             =head1 NAME
59              
60             ? - implement ?
61              
62             =head1 SYNOPSIS
63              
64             TODO
65              
66             =head1 DESCRIPTION
67              
68             ...
69              
70             =head2 XML Schema Definition
71              
72             <!--
73             Child elements of the <create> command.
74             -->
75             <complexType name="createType">
76             <sequence>
77             <element name="id" type="eppcom:clIDType"/>
78             <element name="postalInfo" type="contact:postalInfoType"
79             maxOccurs="2"/>
80             <element name="voice" type="contact:e164Type"
81             minOccurs="0"/>
82             <element name="fax" type="contact:e164Type"
83             minOccurs="0"/>
84             <element name="email" type="eppcom:minTokenType"/>
85             <element name="authInfo" type="contact:authInfoType"/>
86             <element name="disclose" type="contact:discloseType"
87             minOccurs="0"/>
88             </sequence>
89             </complexType>
90              
91             =cut