File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/VeriSign/Platforms/NAME.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, VeriSign EPP extensions
2             ##
3             ## Copyright (c) 2006,2008-2014,2016 Patrick Mevzek . All rights reserved.
4             ##
5             ## This file is part of Net::DRI
6             ##
7             ## Net::DRI is free software; you can redistribute it and/or modify
8             ## it under the terms of the GNU General Public License as published by
9             ## the Free Software Foundation; either version 2 of the License, or
10             ## (at your option) any later version.
11             ##
12             ## See the LICENSE file that comes with this distribution for more details.
13             ####################################################################################################
14              
15             package Net::DRI::Protocol::EPP::Extensions::VeriSign::Platforms::NAME;
16              
17 2     2   1415 use strict;
  2         2  
  2         45  
18 2     2   7 use warnings;
  2         3  
  2         41  
19              
20 2     2   5 use base qw/Net::DRI::Protocol::EPP/;
  2         3  
  2         487  
21              
22             use Net::DRI::Protocol::EPP::Extensions::VeriSign::EmailFwd;
23              
24             =pod
25              
26             =head1 NAME
27              
28             Net::DRI::Protocol::EPP::Extensions::VeriSign::Platforms::NAME - VeriSign dotName (.NAME) EPP extensions for Net::DRI
29              
30             =head1 DESCRIPTION
31              
32             Please see the README file for details.
33              
34             Note that the PremiumDomain extension is not loaded by default.
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) 2006,2008-2014,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->default_parameters()->{subproductid}=$rp->{default_product} || '_auto_';
72             $self->ns({ emailFwd => ['http://www.nic.name/epp/emailFwd-1.0','emailFwd-1.0.xsd'] });
73             $self->capabilities('emailfwd_update','info',['set']);
74             return;
75             }
76              
77             ## List of VeriSign extensions: http://www.verisigninc.com/en_US/channel-resources/domain-registry-products/epp-sdks/index.xhtml?loc=en_US
78             ## But see http://www.verisign.com/assets/epp-sdk/Verisign-EPP-SDK-Prog-Guide.pdf ยง13 Mappings and Extensions
79             ## TODO for .NAME: defreg, namewatch, persreg
80              
81             sub default_extensions
82             {
83             my ($self,$rp)=@_;
84             my @c=qw/VeriSign::Sync VeriSign::PollRGP VeriSign::IDNLanguage VeriSign::EmailFwd GracePeriod SecDNS/;
85             push @c,'VeriSign::NameStore'; ## this must come last
86             return @c;
87             }
88              
89             ####################################################################################################
90             1;