File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/COZA.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, CO.ZA EPP extensions
2             ## From http://registry.coza.net.za/doku.php?id=technical
3             ##
4             ## Copyright (c) 2011 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::COZA;
17              
18 2     2   1350 use strict;
  2         2  
  2         45  
19 2     2   5 use warnings;
  2         3  
  2         40  
20              
21 2     2   6 use base qw/Net::DRI::Protocol::EPP/;
  2         2  
  2         494  
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__