line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ExpansionArrayType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1282
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ExpansionArrayType.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/24/2008 16:44 |
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::DataType::ExpansionArrayType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Container for items returned with an expanded search. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::ExpansionArrayType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
44
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::SearchResultItemType; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ExpansionItem', 'ns:SearchResultItemType', '1' |
46
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::SearchResultItemType', '1' ] |
47
|
|
|
|
|
|
|
, [ 'TotalAvailable', 'xs:int', '', '', '' ] |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my @gaAttributes = ( |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 Subroutines: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub new { |
60
|
|
|
|
|
|
|
my $classname = shift; |
61
|
|
|
|
|
|
|
my %args = @_; |
62
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
63
|
|
|
|
|
|
|
return $self; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub isScalar { |
67
|
|
|
|
|
|
|
return 0; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 setExpansionItem() |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Item that is the result of an expanded search. If, in a GetSearchResults |
75
|
|
|
|
|
|
|
request, you specify true for ExpandSearch, the search is expanded when a |
76
|
|
|
|
|
|
|
small result set is returned. For example, on the US site (site ID 0), if a |
77
|
|
|
|
|
|
|
search would normally result in fewer than 10 items, then the search results |
78
|
|
|
|
|
|
|
are expanded. Specifically, the search returns items (if there are matches) |
79
|
|
|
|
|
|
|
in one or more of the following containers: InternationalExpansionArray (for |
80
|
|
|
|
|
|
|
items available from international sellers), FilterRemovedExpansionArray |
81
|
|
|
|
|
|
|
(items that would be returned if filters such as PriceRangeFilter are |
82
|
|
|
|
|
|
|
removed), StoreExpansionArray (for items listed in the Store Inventory Format), |
83
|
|
|
|
|
|
|
and AllCategoriesExpansionArray (for items available if category |
84
|
|
|
|
|
|
|
filters are removed). The maximum number of items returned in each container |
85
|
|
|
|
|
|
|
is 6 to 10. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
# Argument: reference to an array |
88
|
|
|
|
|
|
|
of 'ns:SearchResultItemType' |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub setExpansionItem { |
93
|
|
|
|
|
|
|
my $self = shift; |
94
|
|
|
|
|
|
|
$self->{'ExpansionItem'} = |
95
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 getExpansionItem() |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Calls: GetSearchResults |
101
|
|
|
|
|
|
|
Returned: Conditionally |
102
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# Returns: reference to an array |
105
|
|
|
|
|
|
|
of 'ns:SearchResultItemType' |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
sub getExpansionItem { |
110
|
|
|
|
|
|
|
my $self = shift; |
111
|
|
|
|
|
|
|
return $self->_getDataTypeArray('ExpansionItem'); |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 setTotalAvailable() |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
The number of matching items available under the expansion. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# Argument: 'xs:int' |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
sub setTotalAvailable { |
124
|
|
|
|
|
|
|
my $self = shift; |
125
|
|
|
|
|
|
|
$self->{'TotalAvailable'} = shift |
126
|
|
|
|
|
|
|
} |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 getTotalAvailable() |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Calls: GetSearchResults |
131
|
|
|
|
|
|
|
Returned: Conditionally |
132
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# Returns: 'xs:int' |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub getTotalAvailable { |
139
|
|
|
|
|
|
|
my $self = shift; |
140
|
|
|
|
|
|
|
return $self->{'TotalAvailable'}; |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
## Attribute and Property lists |
148
|
|
|
|
|
|
|
sub getPropertiesList { |
149
|
|
|
|
|
|
|
my $self = shift; |
150
|
|
|
|
|
|
|
return \@gaProperties; |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub getAttributesList { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
return \@gaAttributes; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
1; |