line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- perl -*- |
2
|
|
|
|
|
|
|
# !!! DO NOT EDIT !!! |
3
|
|
|
|
|
|
|
# This file was automatically generated. |
4
|
|
|
|
|
|
|
package Net::Amazon::Validate::Type::SellerListingSearch; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
29
|
use 5.006; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
43
|
|
7
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
8
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
|
|
322
|
use constant RESPONSEGROUP_VALID_VALUES => { |
11
|
|
|
|
|
|
|
'SellerListing' => 1, |
12
|
1
|
|
|
1
|
|
5
|
}; |
|
1
|
|
|
|
|
2
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
1
|
|
|
1
|
0
|
4
|
my ($class , %options) = @_; |
16
|
1
|
|
|
|
|
3
|
my $self = { |
17
|
|
|
|
|
|
|
%options, |
18
|
|
|
|
|
|
|
}; |
19
|
1
|
|
|
|
|
6
|
bless $self, $class; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub assert { |
23
|
1
|
|
|
1
|
0
|
2
|
my ($self, $value, $name, $href) = @_; |
24
|
1
|
50
|
|
|
|
20
|
die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub validate { |
28
|
1
|
|
|
1
|
0
|
2
|
my ($self, $value, $name, $href) = @_; |
29
|
1
|
50
|
|
|
|
4
|
if ( ref ($value) eq 'ARRAY' ) { |
30
|
0
|
|
|
|
|
0
|
$self->assert($_, $name, $href) for (@$value); |
31
|
|
|
|
|
|
|
} else { |
32
|
1
|
|
|
|
|
4
|
$self->assert($value, $name, $href); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub ResponseGroup { |
37
|
1
|
|
|
1
|
0
|
4
|
my ($self, $value) = @_; |
38
|
1
|
|
|
|
|
4
|
$self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES)); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |