| 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__ | ||