DRI/Protocol/EPP/Extensions/COZA.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DRI/Protocol/EPP/Extensions/COOP.pm ↑ Summary DRI/Protocol/EPP/Extensions/CZ.pm »
1 ## Domain Registry Interface, CO.ZA EPP extensions
2 ## From http://registry.coza.net.za/doku.php?id=technical
3 ##
4 ## Copyright (c) 2011 Patrick Mevzek <netdri@dotandco.com>. 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::COZA;
17  
18 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 2 ▶use base qw/Net::DRI::Protocol::EPP/;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 use Net::DRI::Data::Contact::COZA;
24  
25 ####################################################################################################
26  
27 sub setup
28 {
29 my ($self,$rp)=@_;
30 $self->capabilities('contact_update','status',undef); ## No changes in status possible for .CO.ZA contacts
31 $self->capabilities('contact_update','cancel_action',['set']);
32 $self->capabilities('domain_update','cancel_action',['set']);
33 $self->capabilities('domain_update','auto_renew',['set']);
34 $self->factories('contact',sub { return Net::DRI::Data::Contact::COZA->new(); });
35 return;
36 }
37  
38 sub default_extensions { return qw/COZA::Contact COZA::Domain/; }
39  
40 ####################################################################################################
41 1;
42  
43 __END__
« DRI/Protocol/EPP/Extensions/COOP.pm ↑ Summary DRI/Protocol/EPP/Extensions/CZ.pm »