File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/AFNIC.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, AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions
2             ## From http://www.afnic.fr/medias/documents/afnic-guide-integration-technique.pdf (v1.55 2011-03-03)
3             ##
4             ## Copyright (c) 2008,2009,2012,2013,2016 Patrick Mevzek . All rights reserved.
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::AFNIC;
17              
18 2     2   1484 use strict;
  2         5  
  2         46  
19 2     2   6 use warnings;
  2         2  
  2         45  
20              
21 2     2   7 use base qw/Net::DRI::Protocol::EPP/;
  2         2  
  2         616  
22              
23             use Net::DRI::Data::Contact::AFNIC;
24             use Net::DRI::Protocol::EPP::Extensions::AFNIC::Status;
25              
26             =pod
27              
28             =head1 NAME
29              
30             Net::DRI::Protocol::EPP::Extensions::AFNIC - AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions for Net::DRI
31              
32             =head1 DESCRIPTION
33              
34             Please see the README file for details.
35              
36             =head1 SUPPORT
37              
38             For now, support questions should be sent to:
39              
40             Enetdri@dotandco.comE
41              
42             Please also see the SUPPORT file in the distribution.
43              
44             =head1 SEE ALSO
45              
46             Ehttp://www.dotandco.com/services/software/Net-DRI/E
47              
48             =head1 AUTHOR
49              
50             Patrick Mevzek, Enetdri@dotandco.comE
51              
52             =head1 COPYRIGHT
53              
54             Copyright (c) 2008,2009,2012,2013,2016 Patrick Mevzek .
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             $self->ns({frnic=>['http://www.afnic.fr/xml/epp/frnic-1.4','frnic-1.4.xsd']});
72             $self->capabilities('domain_update','registrant',undef); ## a trade is required
73             $self->capabilities('contact_update','status',undef); ## No changes in status possible for .FR contacts
74             $self->capabilities('contact_update','disclose',['add','del']);
75             $self->capabilities('contact_update','qualification',['add','del']);
76             $self->capabilities('domain_update','secdns',['add','del']); ## no chg allowed for maxSigLife
77             $self->capabilities('domain_update','secdns_urgent',undef); ## no urgent attribute allowed
78             $self->factories('contact',sub { return Net::DRI::Data::Contact::AFNIC->new(); });
79             $self->factories('status',sub { return Net::DRI::Protocol::EPP::Extensions::AFNIC::Status->new(); });
80             return;
81             }
82              
83             sub core_contact_types { return ('admin','tech'); } ## No billing contact in .FR
84             sub default_extensions { return qw/AFNIC::Session AFNIC::Domain AFNIC::Contact AFNIC::Notifications GracePeriod SecDNS/; }
85              
86             ####################################################################################################
87             1;