| 1 | ## Domain Registry Interface, AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions | ||
| 2 | ## From http://www.afnic.fr/medias/documents/afnic-guide-integration-technique.pdf (v1.55 2011-03-03) | ||
| 3 | ## | ||
| 4 | ## Copyright (c) 2008,2009,2012,2013,2016,2018 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::AFNIC; | ||
| 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::AFNIC; | ||
| 24 | use Net::DRI::Protocol::EPP::Extensions::AFNIC::Status; | ||
| 25 | |||
| 26 | =pod | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Net::DRI::Protocol::EPP::Extensions::AFNIC - AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions for Net::DRI | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | Please see the README file for details. | ||
| 35 | |||
| 36 | =head1 SUPPORT | ||
| 37 | |||
| 38 | For now, support questions should be sent to: | ||
| 39 | |||
| 40 | E<lt>netdri@dotandco.comE<gt> | ||
| 41 | |||
| 42 | Please also see the SUPPORT file in the distribution. | ||
| 43 | |||
| 44 | =head1 SEE ALSO | ||
| 45 | |||
| 46 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||
| 47 | |||
| 48 | =head1 AUTHOR | ||
| 49 | |||
| 50 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||
| 51 | |||
| 52 | =head1 COPYRIGHT | ||
| 53 | |||
| 54 | Copyright (c) 2008,2009,2012,2013,2016,2018 Patrick Mevzek <netdri@dotandco.com>. | ||
| 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->ns({frnic => 'http://www.afnic.fr/xml/epp/frnic-1.4'}); | ||
| 72 | $self->capabilities('domain_update','registrant',undef); ## a trade is required | ||
| 73 | $self->capabilities('contact_update','status',undef); ## No changes in status possible for .FR contacts | ||
| 74 | $self->capabilities('contact_update','disclose',['add','del']); | ||
| 75 | $self->capabilities('contact_update','qualification',['add','del']); | ||
| 76 | $self->capabilities('domain_update','secdns',['add','del']); ## no chg allowed for maxSigLife | ||
| 77 | $self->capabilities('domain_update','secdns_urgent',undef); ## no urgent attribute allowed | ||
| 78 | $self->factories('contact',sub { return Net::DRI::Data::Contact::AFNIC->new(); }); | ||
| 79 | $self->factories('status',sub { return Net::DRI::Protocol::EPP::Extensions::AFNIC::Status->new(); }); | ||
| 80 | return; | ||
| 81 | } | ||
| 82 | |||
| 83 | sub core_contact_types { return ('admin','tech'); } ## No billing contact in .FR | ||
| 84 | sub default_extensions { return qw/AFNIC::Session AFNIC::Domain AFNIC::Contact AFNIC::Notifications GracePeriod SecDNS/; } | ||
| 85 | |||
| 86 | #################################################################################################### | ||
| 87 | 1; | ||