| 1 | ## Domain Registry Interface, EPP Status for .SI | ||
| 2 | ## | ||
| 3 | ## Copyright (c) 2016 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::ARNES::Status; | ||
| 16 | |||
| 17 | 1 | ▶ | use base qw!Net::DRI::Protocol::EPP::Core::Status!; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use feature 'state'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | =pod | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Net::DRI::Protocol::EPP::Extensions::ARNES::Status - EPP .SI Status for Net::DRI | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | Please see the README file for details. | ||
| 32 | |||
| 33 | =head1 SUPPORT | ||
| 34 | |||
| 35 | For now, support questions should be sent to: | ||
| 36 | |||
| 37 | E<lt>netdri@dotandco.comE<gt> | ||
| 38 | |||
| 39 | Please also see the SUPPORT file in the distribution. | ||
| 40 | |||
| 41 | =head1 SEE ALSO | ||
| 42 | |||
| 43 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||
| 44 | |||
| 45 | =head1 AUTHOR | ||
| 46 | |||
| 47 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||
| 48 | |||
| 49 | =head1 COPYRIGHT | ||
| 50 | |||
| 51 | Copyright (c) 2016 Patrick Mevzek <netdri@dotandco.com>. | ||
| 52 | All rights reserved. | ||
| 53 | |||
| 54 | This program is free software; you can redistribute it and/or modify | ||
| 55 | it under the terms of the GNU General Public License as published by | ||
| 56 | the Free Software Foundation; either version 2 of the License, or | ||
| 57 | (at your option) any later version. | ||
| 58 | |||
| 59 | See the LICENSE file that comes with this distribution for more details. | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | #################################################################################################### | ||
| 64 | |||
| 65 | sub new | ||
| 66 | { | ||
| 67 | 0 | ▶ | my $class=shift; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 68 | 0 | my $self=$class->SUPER::new(shift); | |
| 69 | |||
| 70 | 0 | state $rs={ 'active' => 'inactive' }; | |
| 71 | 0 | $self->_register_pno($rs); ## this will overwrite what has been done in SUPER::new | |
| 72 | 0 | return $self; | |
| 73 | } | ||
| 74 | |||
| 75 | sub is_core_status | ||
| 76 | { | ||
| 77 | 0 | ▶ | return (shift=~m/^(?:client(?:Hold|(?:Delete|Renew|Update|Transfer)Prohibited)|inactive)$/); |
|
Subroutine
is_core_status: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 78 | } | ||
| 79 | |||
| 80 | 0 | ▶ | sub is_active { return shift->has_not(qw/clientHold serverHold inactive pendingQuarantine pendingLegislativeReturnQuarantine pendingLegislativeReturn/); } |
|
Subroutine
is_active: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 81 | 0 | ▶ | sub is_published { return shift->has_not(qw/clientHold serverHold inactive pendingQuarantine pendingLegislativeReturnQuarantine pendingLegislativeReturn/); } |
|
Subroutine
is_published: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 82 | 0 | ▶ | sub is_pending { return shift->has_any(qw/pendingCreate pendingDelete pendingRenew pendingTransfer pendingUpdate pendingLegislativeReturn pendingLegislativeReturnQuarantine pendingQuarantine/); } |
|
Subroutine
is_pending: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 83 | |||
| 84 | #################################################################################################### | ||
| 85 | 1 | 1; | |