DRI/Protocol/EPP/Extensions/LU/Domain.pm

filter: Statementstmt 7.9% 16 / 202 Branchbran 0.0% 0 / 90 Conditioncond 0.0% 0 / 36 MC/DCmcdc 0.0% 0 / 18 Subroutinesub 17.2% 5 / 29 Podpod 0.0% 0 / 24 totaltotal 5.2% 21 / 399 CC 59 SCAR 43.3
CC
59
Cov
5%
info_parse
210.0
parse_transfer_trade_restore
156.0
verify_contacts
56.0
CRAP 75.9
« DRI/Protocol/EPP/Extensions/GracePeriod.pm ↑ Summary DRI/Protocol/EPP/Extensions/NO/Result.pm »
1 ## Domain Registry Interface, .LU Domain EPP extension commands
2 ##
3 ## Copyright (c) 2007,2008,2010,2013,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::LU::Domain;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use Net::DRI::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Net::DRI::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 ▶use DateTime::Format::ISO8601;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 =pod
26  
27 =head1 NAME
28  
29 Net::DRI::Protocol::EPP::Extensions::LU::Domain - .LU EPP Domain extension commands for Net::DRI
30  
31 =head1 DESCRIPTION
32  
33 Please see the README file for details.
34  
35 =head1 SUPPORT
36  
37 For now, support questions should be sent to:
38  
39 E<lt>netdri@dotandco.comE<gt>
40  
41 Please also see the SUPPORT file in the distribution.
42  
43 =head1 SEE ALSO
44  
45 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
46  
47 =head1 AUTHOR
48  
49 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
50  
51 =head1 COPYRIGHT
52  
53 Copyright (c) 2007,2008,2010,2013,2016 Patrick Mevzek <netdri@dotandco.com>.
54 All rights reserved.
55  
56 This program is free software; you can redistribute it and/or modify
57 it under the terms of the GNU General Public License as published by
58 the Free Software Foundation; either version 2 of the License, or
59 (at your option) any later version.
60  
61 See the LICENSE file that comes with this distribution for more details.
62  
63 =cut
64  
65 ####################################################################################################
66  
67 sub register_commands
68 {
69 0 ▶ my ($class,$version)=@_;
Subroutine register_commands: not called CC=1 SCAR=6.9
Pod undocumented
70 0 my %tmp=(
71 info => [ undef, \&info_parse ],
72 create => [ \&create, undef ],
73 update => [ \&update, undef ],
74 delete => [ \&delete, undef ],
75 restore => [ \&restore, undef ],
76 transfer_request => [ \&transfer_request, \&transfer_parse ],
77 transfer_query => [ undef , \&transfer_parse ],
78 trade_request => [ \&trade_request , \&trade_parse ],
79 trade_query => [ \&trade_query , \&trade_parse ],
80 trade_cancel => [ \&trade_cancel , undef ],
81 transfer_trade_request => [ \&transfer_trade_request, \&transfer_trade_parse ],
82 transfer_trade_query => [ \&transfer_trade_query , \&transfer_trade_parse ],
83 transfer_trade_cancel => [ \&transfer_trade_cancel , undef ],
84 transfer_restore_request => [ \&transfer_restore_request, \&transfer_restore_parse ],
85 transfer_restore_query => [ \&transfer_restore_query , \&transfer_restore_parse ],
86 transfer_restore_cancel => [ \&transfer_restore_cancel , undef ],
87 );
88  
89 0 return { 'domain' => \%tmp };
90 }
91  
92 ####################################################################################################
93  
94 sub info_parse
95 {
96 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo)=@_;
Subroutine info_parse: not called CC=14 SCAR=53.5
Pod undocumented
97 0 my $mes=$po->message();
98 0 ▶ return unless $mes->is_success();
Branch: 1 branch
BranchTrueFalseTotal
unless $mes->is_success 0 0 0
99  
100 0 my $infdata=$mes->get_extension('dnslu','ext');
101 0 ▶ return unless $infdata;
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata 0 0 0
102 0 my $ns=$mes->ns('dnslu');
103 0 $infdata=$infdata->getChildrenByTagNameNS($ns,'resData');
104 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
105 0 $infdata=$infdata->shift()->getChildrenByTagNameNS($ns,'infData');
106 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
107 0 $infdata=$infdata->shift()->getChildrenByTagNameNS($ns,'domain');
108 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
109  
110 0 my $pd=DateTime::Format::ISO8601->new();
111 0 my $c=$infdata->shift()->getFirstChild();
112 0 ▶ while($c)
Branch: 1 branch
BranchTrueFalseTotal
if ($c) 0 0 0
113 {
114 0 ▶ next unless ($c->nodeType() == 1); ## only for element nodes
Branch: 1 branch
BranchTrueFalseTotal
unless $c->nodeType == 1 0 0 0
115 0 ▶ my $name=$c->localname() || $c->nodeName();
Condition0%0/3
$c->localname || $c->nodeName
l!l&&r!l&&!r
000
MC/DC0%0/2
$c->localname || $c->nodeName
$c->localname $c->nodeName
Truth table0%0/3
A || B
A= $c->localnameB= $c->nodeName
ABresult
1X1
011
000
116 0 ▶ next unless $name;
Branch: 1 branch
BranchTrueFalseTotal
unless $name 0 0 0
117  
118 0 ▶ if ($name eq 'idn')
Branch: 4 branches
BranchTrueFalseTotal
if ($name eq 'idn') { } 0 0 0
elsif ($name eq 'status') { } 0 0 0
elsif ($name eq 'crReqID') { } 0 0 0
elsif ($name =~ /^(crReqDate|delReqDate|delDate)$/) { } 0 0 0
119 {
120 ## currently not used
121 } elsif ($name eq 'status')
122 {
123 0 $rinfo->{domain}->{$oname}->{status}->add($c->getFirstChild()->getData());
124 } elsif ($name eq 'crReqID')
125 {
126 0 $rinfo->{domain}->{$oname}->{$name}=$c->getFirstChild()->getData();
127 } elsif ($name=~m/^(crReqDate|delReqDate|delDate)$/)
128 {
129 0 $rinfo->{domain}->{$oname}->{$name}=$pd->parse_datetime($c->getFirstChild()->getData());
130 }
131  
132 0 } continue { $c=$c->getNextSibling(); }
133 0 return;
134 }
135  
136 sub verify_contacts
137 {
138 0 ▶ my $rd=shift;
Subroutine verify_contacts: not called CC=7 SCAR=40.3
Pod undocumented
139 0 ▶ Net::DRI::Exception::usererr_invalid_parameters('.LU needs contact for domain_create/domain_transfer/domain_trade') unless Net::DRI::Util::has_contact($rd);
Branch: 1 branch
BranchTrueFalseTotal
unless Net::DRI::Util::has_contact($rd) 0 0 0
140 0 my @t=$rd->{contact}->types();
141 0 ▶ Net::DRI::Exception::usererr_invalid_parameters('.LU needs registrant, admin and tech contacts only') unless ($t[0] eq 'admin' && $t[1] eq 'registrant' && $t[2] eq 'tech');
Branch: 1 branch
BranchTrueFalseTotal
unless $t[0] eq "admin" and $t[1] eq "registrant" and $t[2] eq "tech" 0 0 0
Condition0%0/6
$t[0] eq "admin" and $t[1] eq "registrant" and $t[2] eq "tech"
!ll&&!rl&&r
000
$t[0] eq "admin" and $t[1] eq "registrant"
!ll&&!rl&&r
000
MC/DC0%0/3
$t[0] eq "admin" and $t[1] eq "registrant" and $t[2] eq "tech"
$t[0] eq "admin" $t[1] eq "registrant" $t[2] eq "tech"
Truth table0%0/4
A and B and C
A= $t[0] eq "admin"B= $t[1] eq "registrant"C= $t[2] eq "tech"
ABCresult
0XX0
10X0
1100
1111
142 0 foreach my $t (qw/registrant admin tech/)
143 {
144 0 my @t=$rd->{contact}->get($t);
145 0 ▶ Net::DRI::Exception::usererr_invalid_parameters('.LU needs only one contact of type '.$t) unless @t==1;
Branch: 1 branch
BranchTrueFalseTotal
unless @t == 1 0 0 0
146 }
147 0 return;
148 }
149  
150 sub create
151 {
152 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine create: not called CC=3 SCAR=24.8
Pod undocumented
153 0 my $mes=$epp->message();
154  
155 0 verify_contacts($rd);
156  
157 ## idn is not handled
158  
159 0 ▶ return unless Net::DRI::Util::has_key($rd,'status');
Branch: 1 branch
BranchTrueFalseTotal
unless Net::DRI::Util::has_key($rd, "status") 0 0 0
160 0 ▶ my @n=map { ['dnslu:status',{ s => $_ }] } (Net::DRI::Util::isa_statuslist($rd->{status})? $rd->{status}->list_status() : @{$rd->{status}});
Branch: 1 branch
BranchTrueFalseTotal
Net::DRI::Util::isa_statuslist($rd->{'status'}) ? : 0 0 0
161  
162 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
163 0 $mes->command_extension($eid,['dnslu:create',['dnslu:domain',@n]]);
164 0 return;
165 }
166  
167 sub update
168 {
169 0 ▶ my ($epp,$domain,$todo)=@_;
Subroutine update: not called CC=6 SCAR=37.4
Pod undocumented
170 0 my $mes=$epp->message();
171  
172 0 my @n;
173 0 my $sadd=$todo->add('status');
174 0 my $sdel=$todo->del('status');
175 0 my (@add,@del);
176 0 ▶ push @add,$sadd->build_xml('dnslu:status','dnslu') if $sadd;
Branch: 1 branch
BranchTrueFalseTotal
if $sadd 0 0 0
177 0 ▶ push @del,$sdel->build_xml('dnslu:status','dnslu') if $sdel;
Branch: 1 branch
BranchTrueFalseTotal
if $sdel 0 0 0
178 0 ▶ push @n,['dnslu:add',@add] if @add;
Branch: 1 branch
BranchTrueFalseTotal
if @add 0 0 0
179 0 ▶ push @n,['dnslu:rem',@del] if @del;
Branch: 1 branch
BranchTrueFalseTotal
if @del 0 0 0
180 0 ▶ return unless @n;
Branch: 1 branch
BranchTrueFalseTotal
unless @n 0 0 0
181  
182 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
183 0 $mes->command_extension($eid,['dnslu:update',['dnslu:domain',@n]]);
184 0 return;
185 }
186  
187 sub delete ## no critic (Subroutines::ProhibitBuiltinHomonyms)
188 {
189 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine delete: not called CC=7 SCAR=40.3
Pod undocumented
190 0 my $mes=$epp->message();
191  
192 0 ▶ return unless (defined($rd) && ref($rd) && exists($rd->{delDate}) && ($rd->{delDate}=~m/^(?:immediate|cancel)$/ || Net::DRI::Util::is_class($rd->{delDate},'DateTime')));
Branch: 1 branch
BranchTrueFalseTotal
unless defined $rd and ref $rd and exists $rd->{"delDate"} and $rd->{"delDate"} =~ /^(?:immediate|cancel)$/ || Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime") 0 0 0
Condition0%0/12
defined $rd and ref $rd and exists $rd->{"delDate"} and $rd->{"delDate"} =~ /^(?:immediate|cancel)$/ || Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime")
!ll&&!rl&&r
000
defined $rd and ref $rd and exists $rd->{"delDate"}
!ll&&!rl&&r
000
defined $rd and ref $rd
!ll&&!rl&&r
000
$rd->{"delDate"} =~ /^(?:immediate|cancel)$/ or Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime")
l!l&&r!l&&!r
000
MC/DC0%0/5
defined $rd and ref $rd and exists $rd->{"delDate"} and $rd->{"delDate"} =~ /^(?:immediate|cancel)$/ || Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime")
defined $rd ref $rd exists $rd->{"delDate"} $rd->{"delDate"} =~ /^(?:immediate|cancel)$/ Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime")
Truth table0%0/6
A and B and C and D or E
A= defined $rdB= ref $rdC= exists $rd->{"delDate"}D= $rd->{"delDate"} =~ /^(?:immediate|cancel)$/E= Net::DRI::Util::is_class($rd->{"delDate"}, "DateTime")
ABCDEresult
0XXXX0
10XXX0
110XX0
111000
1111X1
111011
193  
194 0 my @n;
195 0 ▶ if ($rd->{delDate}=~m/^(?:immediate|cancel)$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($rd->{'delDate'} =~ /^(?:immediate|cancel)$/) { } 0 0 0
196 {
197 0 @n=['dnslu:op',$rd->{delDate}];
198 } else
199 {
200 0 @n=['dnslu:op','setDate'];
201 0 push @n,['dnslu:delDate',$rd->{delDate}->set_time_zone('UTC')->strftime('%Y-%m-%dT%TZ')];
202 }
203  
204 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
205 0 $mes->command_extension($eid,['dnslu:delete',['dnslu:domain',@n]]);
206 0 return;
207 }
208  
209 sub build_command
210 {
211 0 ▶ my ($domain)=@_;
Subroutine build_command: not called CC=6 SCAR=37.4
Pod undocumented
212  
213 0 ▶ Net::DRI::Exception->die(1,'protocol/EPP',2,'Domain name needed') unless (defined($domain) && $domain && !ref($domain));
Branch: 1 branch
BranchTrueFalseTotal
unless defined $domain and $domain and not ref $domain 0 0 0
Condition0%0/6
defined $domain and $domain and not ref $domain
!ll&&!rl&&r
000
defined $domain and $domain
!ll&&!rl&&r
000
MC/DC0%0/3
defined $domain and $domain and not ref $domain
defined $domain $domain not ref $domain
Truth table0%0/4
A and B and not(C)
A= defined $domainB= $domainC= not ref $domain
ABCresult
0XX0
10X0
1100
1111
214 0 ▶ Net::DRI::Exception->die(1,'protocol/EPP',10,'Invalid domain name: '.$domain) unless Net::DRI::Util::is_hostname($domain);
Branch: 1 branch
BranchTrueFalseTotal
unless Net::DRI::Util::is_hostname($domain) 0 0 0
215 0 ▶ Net::DRI::Exception->die(1,'protocol/EPP',10,'Domain name not in .LU: '.$domain) unless $domain=~m/\.LU$/i;
Branch: 1 branch
BranchTrueFalseTotal
unless $domain =~ /\.LU$/i 0 0 0
216  
217 0 return ['dnslu:name',$domain];
218 }
219  
220 sub restore
221 {
222 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine restore: not called CC=1 SCAR=6.9
Pod undocumented
223 0 my $mes=$epp->message();
224  
225 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
226 0 $mes->command_extension($eid,['dnslu:command',['dnslu:restore',['dnslu:domain',build_command($domain)]]]);
227 0 return;
228 }
229  
230 sub build_transfer_trade_restore
231 {
232 0 ▶ my ($rd)=@_;
Subroutine build_transfer_trade_restore: not called CC=7 SCAR=40.3
Pod undocumented
233 0 my @n;
234  
235 0 verify_contacts($rd);
236
237 0 ▶ push @n,['dnslu:ns',map { ['dnslu:hostObj',$_] } $rd->{ns}->get_names() ] if Net::DRI::Util::has_ns($rd);
Branch: 1 branch
BranchTrueFalseTotal
if Net::DRI::Util::has_ns($rd) 0 0 0
238 0 my $cs=$rd->{contact};
239 0 push @n,['dnslu:registrant',$cs->get('registrant')->srid()];
240 0 push @n,['dnslu:contact',{type => 'admin'},$cs->get('admin')->srid()];
241 0 push @n,['dnslu:contact',{type => 'tech'},$cs->get('tech')->srid()];
242 0 ▶ push @n,map { ['dnslu:status',{ s => $_ }] } (Net::DRI::Util::isa_statuslist($rd->{status})? $rd->{status}->list_status() : @{$rd->{status}}) if Net::DRI::Util::has_key($rd,'status');
Branch: 2 branches
BranchTrueFalseTotal
if Net::DRI::Util::has_key($rd, "status") 0 0 0
Net::DRI::Util::isa_statuslist($rd->{'status'}) ? : 0 0 0
243 ## IDN not used
244 0 ▶ push @n,['dnslu:trDate',$rd->{trDate}->set_time_zone('UTC')->strftime('%Y-%m-%d')] if (exists($rd->{trDate}) && defined($rd->{trDate}) && Net::DRI::Util::check_isa($rd->{trDate},'DateTime'));
Branch: 1 branch
BranchTrueFalseTotal
if exists $rd->{"trDate"} and defined $rd->{"trDate"} and Net::DRI::Util::check_isa($rd->{"trDate"}, "DateTime") 0 0 0
Condition0%0/6
exists $rd->{"trDate"} and defined $rd->{"trDate"} and Net::DRI::Util::check_isa($rd->{"trDate"}, "DateTime")
!ll&&!rl&&r
000
exists $rd->{"trDate"} and defined $rd->{"trDate"}
!ll&&!rl&&r
000
MC/DC0%0/3
exists $rd->{"trDate"} and defined $rd->{"trDate"} and Net::DRI::Util::check_isa($rd->{"trDate"}, "DateTime")
exists $rd->{"trDate"} defined $rd->{"trDate"} Net::DRI::Util::check_isa($rd->{"trDate"}, "DateTime")
Truth table0%0/4
A and B and C
A= exists $rd->{"trDate"}B= defined $rd->{"trDate"}C= Net::DRI::Util::check_isa($rd->{"trDate"}, "DateTime")
ABCresult
0XX0
10X0
1100
1111
245 0 return @n;
246 }
247  
248 sub transfer_request
249 {
250 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_request: not called CC=1 SCAR=6.9
Pod undocumented
251 0 my $mes=$epp->message();
252  
253 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
254 0 $mes->command_extension($eid,['dnslu:transfer',['dnslu:domain',build_transfer_trade_restore($rd)]]);
255 0 return;
256 }
257  
258 sub transfer_parse ## for request & query
259 {
260 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo)=@_;
Subroutine transfer_parse: not called CC=2 SCAR=17.9
Pod undocumented
261 0 my $mes=$po->message();
262 0 ▶ return unless $mes->is_success();
Branch: 1 branch
BranchTrueFalseTotal
unless $mes->is_success 0 0 0
263  
264 0 parse_transfer_trade_restore($po,$otype,$oaction,$oname,$rinfo,'trnData');
265 0 return;
266 }
267  
268 sub parse_transfer_trade_restore
269 {
270 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo,$s)=@_;
Subroutine parse_transfer_trade_restore: not called CC=12 SCAR=50.5
Pod undocumented
271 0 my $mes=$po->message();
272  
273 0 my $infdata=$mes->get_extension('dnslu','ext');
274 0 ▶ return unless $infdata;
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata 0 0 0
275 0 my $ns=$mes->ns('dnslu');
276 0 $infdata=$infdata->getChildrenByTagNameNS($ns,'resData');
277 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
278 0 $infdata=$infdata->shift()->getChildrenByTagNameNS($ns,$s);
279 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
280 0 $infdata=$infdata->shift()->getChildrenByTagNameNS($ns,'domain');
281 0 ▶ return unless $infdata->size();
Branch: 1 branch
BranchTrueFalseTotal
unless $infdata->size 0 0 0
282  
283 0 my $pd=DateTime::Format::ISO8601->new();
284 0 my $c=$infdata->shift->getFirstChild();
285 0 ▶ while($c)
Branch: 1 branch
BranchTrueFalseTotal
if ($c) 0 0 0
286 {
287 0 ▶ next unless ($c->nodeType() == 1); ## only for element nodes
Branch: 1 branch
BranchTrueFalseTotal
unless $c->nodeType == 1 0 0 0
288 0 ▶ my $name=$c->localname() || $c->nodeName();
Condition0%0/3
$c->localname || $c->nodeName
l!l&&r!l&&!r
000
MC/DC0%0/2
$c->localname || $c->nodeName
$c->localname $c->nodeName
Truth table0%0/3
A || B
A= $c->localnameB= $c->nodeName
ABresult
1X1
011
000
289 0 ▶ next unless $name;
Branch: 1 branch
BranchTrueFalseTotal
unless $name 0 0 0
290  
291 0 ▶ if ($name eq 'idn')
Branch: 3 branches
BranchTrueFalseTotal
if ($name eq 'idn') { } 0 0 0
elsif ($name =~ /^(trStatus|reID)$/) { } 0 0 0
elsif ($name =~ /^(reDate|acDate|trDate)$/) { } 0 0 0
292 {
293 ## currently not used
294 } elsif ($name=~m/^(trStatus|reID)$/)
295 {
296 0 $rinfo->{domain}->{$oname}->{$name}=$c->getFirstChild()->getData();
297 } elsif ($name=~m/^(reDate|acDate|trDate)$/)
298 {
299 0 $rinfo->{domain}->{$oname}->{$name}=$pd->parse_datetime($c->getFirstChild()->getData());
300 }
301 0 } continue { $c=$c->getNextSibling(); }
302 0 return;
303 }
304  
305 sub trade_request
306 {
307 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine trade_request: not called CC=1 SCAR=6.9
Pod undocumented
308 0 my $mes=$epp->message();
309  
310 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
311 0 $mes->command_extension($eid,['dnslu:command',['dnslu:trade',{op=>'request'},['dnslu:domain',build_command($domain),build_transfer_trade_restore($rd)]]]);
312 0 return;
313 }
314  
315 sub trade_parse
316 {
317 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo)=@_;
Subroutine trade_parse: not called CC=2 SCAR=17.9
Pod undocumented
318 0 my $mes=$po->message();
319 0 ▶ return unless $mes->is_success();
Branch: 1 branch
BranchTrueFalseTotal
unless $mes->is_success 0 0 0
320  
321 0 parse_transfer_trade_restore($po,$otype,$oaction,$oname,$rinfo,'traData');
322 0 return;
323 }
324  
325 sub trade_query
326 {
327 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine trade_query: not called CC=1 SCAR=6.9
Pod undocumented
328 0 my $mes=$epp->message();
329  
330 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
331 0 $mes->command_extension($eid,['dnslu:command',['dnslu:trade',{op=>'query'},['dnslu:domain',build_command($domain)]]]);
332 0 return;
333 }
334  
335 sub trade_cancel
336 {
337 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine trade_cancel: not called CC=1 SCAR=6.9
Pod undocumented
338 0 my $mes=$epp->message();
339  
340 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
341 0 $mes->command_extension($eid,['dnslu:command',['dnslu:trade',{op=>'cancel'},['dnslu:domain',build_command($domain)]]]);
342 0 return;
343 }
344  
345 sub transfer_trade_request
346 {
347 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_trade_request: not called CC=1 SCAR=6.9
Pod undocumented
348 0 my $mes=$epp->message();
349  
350 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
351 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferTrade',{op=>'request'},['dnslu:domain',build_command($domain),build_transfer_trade_restore($rd)]]]);
352 0 return;
353 }
354  
355 sub transfer_trade_parse
356 {
357 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo)=@_;
Subroutine transfer_trade_parse: not called CC=2 SCAR=17.9
Pod undocumented
358 0 my $mes=$po->message();
359 0 ▶ return unless $mes->is_success();
Branch: 1 branch
BranchTrueFalseTotal
unless $mes->is_success 0 0 0
360  
361 0 parse_transfer_trade_restore($po,$otype,$oaction,$oname,$rinfo,'trnTraData');
362 0 return;
363 }
364  
365 sub transfer_trade_query
366 {
367 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_trade_query: not called CC=1 SCAR=6.9
Pod undocumented
368 0 my $mes=$epp->message();
369  
370 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
371 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferTrade',{op=>'query'},['dnslu:domain',build_command($domain)]]]);
372 0 return;
373 }
374  
375 sub transfer_trade_cancel
376 {
377 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_trade_cancel: not called CC=1 SCAR=6.9
Pod undocumented
378 0 my $mes=$epp->message();
379  
380 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
381 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferTrade',{op=>'cancel'},['dnslu:domain',build_command($domain)]]]);
382 0 return;
383 }
384  
385 sub transfer_restore_request
386 {
387 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_restore_request: not called CC=1 SCAR=6.9
Pod undocumented
388 0 my $mes=$epp->message();
389  
390 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
391 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferRestore',{op=>'request'},['dnslu:domain',build_command($domain),build_transfer_trade_restore($rd)]]]);
392 0 return;
393 }
394  
395 sub transfer_restore_parse
396 {
397 0 ▶ my ($po,$otype,$oaction,$oname,$rinfo)=@_;
Subroutine transfer_restore_parse: not called CC=2 SCAR=17.9
Pod undocumented
398 0 my $mes=$po->message();
399 0 ▶ return unless $mes->is_success();
Branch: 1 branch
BranchTrueFalseTotal
unless $mes->is_success 0 0 0
400  
401 0 parse_transfer_trade_restore($po,$otype,$oaction,$oname,$rinfo,'trnResData');
402 0 return;
403 }
404  
405 sub transfer_restore_query
406 {
407 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_restore_query: not called CC=1 SCAR=6.9
Pod undocumented
408 0 my $mes=$epp->message();
409  
410 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
411 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferRestore',{op=>'query'},['dnslu:domain',build_command($domain)]]]);
412 0 return;
413 }
414  
415 sub transfer_restore_cancel
416 {
417 0 ▶ my ($epp,$domain,$rd)=@_;
Subroutine transfer_restore_cancel: not called CC=1 SCAR=6.9
Pod undocumented
418 0 my $mes=$epp->message();
419  
420 0 my $eid=$mes->command_extension_register('dnslu', 'ext');
421 0 $mes->command_extension($eid,['dnslu:command',['dnslu:transferRestore',{op=>'cancel'},['dnslu:domain',build_command($domain)]]]);
422 0 return;
423 }
424  
425 ####################################################################################################
426 1 1;
« DRI/Protocol/EPP/Extensions/GracePeriod.pm ↑ Summary DRI/Protocol/EPP/Extensions/NO/Result.pm »