File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/EURid.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             ## Domain Registry Interface, EURid EPP extensions
2             ##
3             ## Copyright (c) 2005,2007-2012 Patrick Mevzek . All rights reserved.
4             ## 2014 Michael Kefeder .
5             ##
6             ## This file is part of Net::DRI
7             ##
8             ## Net::DRI is free software; you can redistribute it and/or modify
9             ## it under the terms of the GNU General Public License as published by
10             ## the Free Software Foundation; either version 2 of the License, or
11             ## (at your option) any later version.
12             ##
13             ## See the LICENSE file that comes with this distribution for more details.
14             ####################################################################################################
15              
16             package Net::DRI::Protocol::EPP::Extensions::EURid;
17              
18 1     1   913 use strict;
  1         3  
  1         27  
19 1     1   4 use warnings;
  1         1  
  1         24  
20              
21 1     1   4 use base qw/Net::DRI::Protocol::EPP/;
  1         1  
  1         127  
22              
23             use Net::DRI::Data::Contact::EURid;
24              
25             =pod
26              
27             =head1 NAME
28              
29             Net::DRI::Protocol::EPP::Extensions::EURid - EURid (.EU) EPP extensions (release 5.6) for Net::DRI
30              
31             =head1 DESCRIPTION
32              
33             Please see the README file for details.
34              
35             =head1 SUPPORT
36              
37             For now, support questions should be sent to:
38              
39             Enetdri@dotandco.comE
40              
41             Please also see the SUPPORT file in the distribution.
42              
43             =head1 SEE ALSO
44              
45             Ehttp://www.dotandco.com/services/software/Net-DRI/E
46              
47             =head1 AUTHOR
48              
49             Patrick Mevzek, Enetdri@dotandco.comE
50              
51             =head1 COPYRIGHT
52              
53             Copyright (c) 2005,2007-2012 Patrick Mevzek .
54             2014 Michael Kefeder .
55             All rights reserved.
56              
57             This program is free software; you can redistribute it and/or modify
58             it under the terms of the GNU General Public License as published by
59             the Free Software Foundation; either version 2 of the License, or
60             (at your option) any later version.
61              
62             See the LICENSE file that comes with this distribution for more details.
63              
64             =cut
65              
66             ####################################################################################################
67              
68             sub setup
69             {
70             my ($self,$rp)=@_;
71             my $version=$self->version();
72              
73             ## NOT handled : dss, dynUpdate, euridcom
74             # $self->ns({_main => ['http://www.eurid.eu/xml/epp/epp-1.0','epp-1.0.xsd']});
75             # $self->ns({ map { $_ => ['http://www.eurid.eu/xml/epp/'.$_.'-1.0',$_.'-1.0.xsd'] } qw/extendedInfo pendingTransaction/ });
76             $self->ns({ map { $_ => ['http://www.eurid.eu/xml/epp/'.$_.'-1.1',$_.'-1.1.xsd'] } qw/nsgroup/ });
77             $self->capabilities('contact_update','status',undef); ## No changes in status possible for .EU domains/contacts
78             $self->capabilities('domain_update','status',undef);
79             $self->capabilities('domain_update','nsgroup',[ 'add','del']);
80             $self->factories('contact',sub { return Net::DRI::Data::Contact::EURid->new(); });
81             $self->default_parameters({domain_create => { auth => { pw => '' } } });
82             return;
83             }
84              
85             ## TODO Keygroup momentarily not used, in order to upgrade it to -1.1
86             ## TODO same for nsgroup, but -1.0 is still alowed
87             ## TODO EURid::Message removed for now
88             sub default_extensions { return qw/EURid::Session EURid::Domain EURid::Contact EURid::Registrar EURid::Notifications EURid::IDN NSgroup SecDNS/; }
89              
90             ####################################################################################################
91             1;