line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package SRS::EPP::Command::Delete::Contact; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
$SRS::EPP::Command::Delete::Contact::VERSION = '0.22'; |
5
|
|
|
|
|
|
|
} |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
4110
|
use Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
148
|
|
8
|
|
|
|
|
|
|
extends 'SRS::EPP::Command::Delete'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
15466
|
use MooseX::Params::Validate; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
11
|
1
|
|
|
1
|
|
879
|
use SRS::EPP::Session; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use XML::EPP::Contact; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# for plugin system to connect |
15
|
|
|
|
|
|
|
sub xmlns { |
16
|
|
|
|
|
|
|
XML::EPP::Contact::Node::xmlns(); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub process { |
20
|
|
|
|
|
|
|
my $self = shift; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my ( $session ) = pos_validated_list( |
23
|
|
|
|
|
|
|
\@_, |
24
|
|
|
|
|
|
|
{ isa => 'SRS::EPP::Session' }, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$self->session($session); |
28
|
|
|
|
|
|
|
my $epp = $self->message; |
29
|
|
|
|
|
|
|
my $message = $epp->message; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
my $payload = $message->argument->payload; |
32
|
|
|
|
|
|
|
my $action_id = $self->client_id || $self->server_id; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
return XML::SRS::Handle::Update->new( |
35
|
|
|
|
|
|
|
handle_id => $payload->id, |
36
|
|
|
|
|
|
|
action_id => $action_id, |
37
|
|
|
|
|
|
|
delete => 1, |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub notify{ |
42
|
|
|
|
|
|
|
my $self = shift; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
my ( $rs ) = pos_validated_list( |
45
|
|
|
|
|
|
|
\@_, |
46
|
|
|
|
|
|
|
{ isa => 'ArrayRef[SRS::EPP::SRSResponse]' }, |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my $message = $rs->[0]->message; |
50
|
|
|
|
|
|
|
my $response = $message->response; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
if ( !$response ) { |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
# That means everything worked |
55
|
|
|
|
|
|
|
return $self->make_response(code => 1000); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
return $self->make_response(code => 2400); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |