| 1 | ## Domain Registry Interface, CIRA (.CA) EPP extensions | ||
| 2 | ## | ||
| 3 | ## Copyright (c) 2010,2015,2018 Patrick Mevzek <netdri@dotandco.com>. 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::CIRA; | ||
| 16 | |||
| 17 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 3 | ▶ | use base qw/Net::DRI::Protocol::EPP/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | use Net::DRI::Util; | ||
| 23 | use Net::DRI::Data::Contact::CIRA; | ||
| 24 | |||
| 25 | #################################################################################################### | ||
| 26 | |||
| 27 | sub setup | ||
| 28 | { | ||
| 29 | my ($self,$rp)=@_; | ||
| 30 | my $version=$self->version(); | ||
| 31 | $self->ns({cira => 'urn:ietf:params:xml:ns:cira-1.0', | ||
| 32 | poll => 'urn:ietf:params:xml:ns:poll-1.0'}); | ||
| 33 | |||
| 34 | $self->factories('contact',sub { return Net::DRI::Data::Contact::CIRA->new(); }); | ||
| 35 | $self->default_parameters({domain_create => { auth => { pw => '' } } }); ## authInfo not used by CIRA | ||
| 36 | return; | ||
| 37 | } | ||
| 38 | |||
| 39 | sub core_contact_types { return ('admin','tech'); } ## No billing contact in .CA | ||
| 40 | sub default_extensions { return qw/CIRA::Domain CIRA::Contact CIRA::Agreement CIRA::Notifications CIRA::IDN/; } | ||
| 41 | |||
| 42 | #################################################################################################### | ||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ | ||
| 46 | |||
| 47 | =pod | ||
| 48 | |||
| 49 | =head1 NAME | ||
| 50 | |||
| 51 | Net::DRI::Protocol::EPP::Extensions::CIRA - CIRA (.CA) EPP extensions for Net::DRI | ||
| 52 | |||
| 53 | =head1 DESCRIPTION | ||
| 54 | |||
| 55 | Please see the README file for details. | ||
| 56 | |||
| 57 | =head1 SUPPORT | ||
| 58 | |||
| 59 | For now, support questions should be sent to: | ||
| 60 | |||
| 61 | E<lt>netdri@dotandco.comE<gt> | ||
| 62 | |||
| 63 | Please also see the SUPPORT file in the distribution. | ||
| 64 | |||
| 65 | =head1 SEE ALSO | ||
| 66 | |||
| 67 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||
| 68 | |||
| 69 | =head1 AUTHOR | ||
| 70 | |||
| 71 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||
| 72 | |||
| 73 | =head1 COPYRIGHT | ||
| 74 | |||
| 75 | Copyright (c) 2010,2015,2018 Patrick Mevzek <netdri@dotandco.com>. | ||
| 76 | All rights reserved. | ||
| 77 | |||
| 78 | This program is free software; you can redistribute it and/or modify | ||
| 79 | it under the terms of the GNU General Public License as published by | ||
| 80 | the Free Software Foundation; either version 2 of the License, or | ||
| 81 | (at your option) any later version. | ||
| 82 | |||
| 83 | See the LICENSE file that comes with this distribution for more details. | ||
| 84 | |||
| 85 | =cut | ||