| 1 | ## Domain Registry Interface, NORID (.NO) EPP extensions | ||
| 2 | ## | ||
| 3 | ## Copyright (c) 2008-2013 UNINETT Norid AS, E<lt>http://www.norid.noE<gt>, | ||
| 4 | ## Trond Haugen E<lt>info@norid.noE<gt> | ||
| 5 | ## Copyright (c) 2016,2018 Patrick Mevzek <netdri@dotandco.com>. | ||
| 6 | ## All rights reserved. | ||
| 7 | ## | ||
| 8 | ## This file is part of Net::DRI | ||
| 9 | ## | ||
| 10 | ## Net::DRI is free software; you can redistribute it and/or modify | ||
| 11 | ## it under the terms of the GNU General Public License as published by | ||
| 12 | ## the Free Software Foundation; either version 2 of the License, or | ||
| 13 | ## (at your option) any later version. | ||
| 14 | ## | ||
| 15 | ## See the LICENSE file that comes with this distribution for more details. | ||
| 16 | #################################################################################################### | ||
| 17 | |||
| 18 | package Net::DRI::Protocol::EPP::Extensions::NO; | ||
| 19 | |||
| 20 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 2 | ▶ | use base qw/Net::DRI::Protocol::EPP/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | use Net::DRI::Data::Contact::NO; | ||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | Net::DRI::Protocol::EPP::Extensions::NO - .NO EPP extensions for Net::DRI | ||
| 32 | |||
| 33 | =head1 DESCRIPTION | ||
| 34 | |||
| 35 | Please see the README file for details. | ||
| 36 | |||
| 37 | =head1 SUPPORT | ||
| 38 | |||
| 39 | For now, support questions should be sent to: | ||
| 40 | |||
| 41 | E<lt>netdri@dotandco.comE<gt> | ||
| 42 | |||
| 43 | Please also see the SUPPORT file in the distribution. | ||
| 44 | |||
| 45 | =head1 SEE ALSO | ||
| 46 | |||
| 47 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Trond Haugen, E<lt>info@norid.noE<gt> | ||
| 52 | |||
| 53 | =head1 COPYRIGHT | ||
| 54 | |||
| 55 | Copyright (c) 2008-2013 UNINETT Norid AS, E<lt>http://www.norid.noE<gt>, | ||
| 56 | Trond Haugen E<lt>info@norid.noE<gt> | ||
| 57 | Copyright (c) 2016,2018 Patrick Mevzek <netdri@dotandco.com> | ||
| 58 | All rights reserved. | ||
| 59 | |||
| 60 | This program is free software; you can redistribute it and/or modify | ||
| 61 | it under the terms of the GNU General Public License as published by | ||
| 62 | the Free Software Foundation; either version 2 of the License, or | ||
| 63 | (at your option) any later version. | ||
| 64 | |||
| 65 | See the LICENSE file that comes with this distribution for more details. | ||
| 66 | |||
| 67 | =cut | ||
| 68 | |||
| 69 | #################################################################################################### | ||
| 70 | |||
| 71 | sub setup { | ||
| 72 | my ($self,$rp)=@_; | ||
| 73 | $self->ns({ 'no-ext-contact' => 'http://www.norid.no/xsd/no-ext-contact-1.0', | ||
| 74 | 'no-ext-domain' => 'http://www.norid.no/xsd/no-ext-domain-1.1', | ||
| 75 | 'no-ext-host' => 'http://www.norid.no/xsd/no-ext-host-1.0', | ||
| 76 | 'no-ext-result' => 'http://www.norid.no/xsd/no-ext-result-1.0', | ||
| 77 | 'no-ext-epp' => 'http://www.norid.no/xsd/no-ext-epp-1.0', | ||
| 78 | }); | ||
| 79 | |||
| 80 | |||
| 81 | foreach my $o (qw/mobilephone identity xdisclose facets/) { $self->capabilities('contact_update',$o,['set']); } | ||
| 82 | foreach my $o (qw/organization rolecontact xemail/) { $self->capabilities('contact_update',$o,['add','del']); } | ||
| 83 | $self->capabilities('host_update','contact',['set']); | ||
| 84 | $self->capabilities('host_update','facets',['set']); | ||
| 85 | $self->capabilities('domain_update','facets',['set']); | ||
| 86 | $self->capabilities('domain_update','applicantdataset',['set']); | ||
| 87 | $self->factories('contact',sub { return Net::DRI::Data::Contact::NO->new(); }); | ||
| 88 | |||
| 89 | return; | ||
| 90 | } | ||
| 91 | |||
| 92 | sub default_extensions { return qw/NO::Domain NO::Contact NO::Host NO::Result NO::Message/; } | ||
| 93 | |||
| 94 | #################################################################################################### | ||
| 95 | 1; | ||