line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::SearchResultItemType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1220
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
26
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. SearchResultItemType.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::SearchResultItemType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Contains the data for one item listing found by a search (such as by |
25
|
|
|
|
|
|
|
GetSearchResults). |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::SearchResultItemType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::NameValueListArrayType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SearchResultValuesCodeType; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Item', 'ns:ItemType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemType', '1' ] |
50
|
|
|
|
|
|
|
, [ 'ItemSpecific', 'ns:NameValueListArrayType', '' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NameValueListArrayType', '1' ] |
52
|
|
|
|
|
|
|
, [ 'SearchResultValues', 'ns:SearchResultValuesCodeType', '1' |
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SearchResultValuesCodeType', '' ] |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
my @gaAttributes = ( |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 Subroutines: |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub new { |
66
|
|
|
|
|
|
|
my $classname = shift; |
67
|
|
|
|
|
|
|
my %args = @_; |
68
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
69
|
|
|
|
|
|
|
return $self; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub isScalar { |
73
|
|
|
|
|
|
|
return 0; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 setItem() |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Contains summary data for the item listing itself, with the properties that define |
81
|
|
|
|
|
|
|
the listing. For all item data, use an item-retrieval call, such as GetItem. |
82
|
|
|
|
|
|
|
Output only. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
# Argument: 'ns:ItemType' |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
sub setItem { |
89
|
|
|
|
|
|
|
my $self = shift; |
90
|
|
|
|
|
|
|
$self->{'Item'} = shift |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 getItem() |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Calls: GetSearchResults |
96
|
|
|
|
|
|
|
Returned: Conditionally |
97
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll |
98
|
|
|
|
|
|
|
GranularityLevel: Coarse |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
# Returns: 'ns:ItemType' |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub getItem { |
106
|
|
|
|
|
|
|
my $self = shift; |
107
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'Item' |
108
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemType'); |
109
|
|
|
|
|
|
|
} |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 setItemSpecific() |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
A list of attribute and value pairs. GetSearchResults can return this |
115
|
|
|
|
|
|
|
when the request either specifies IncludeCondition as true or |
116
|
|
|
|
|
|
|
searches for the Item Condition by using SearchRequest. |
117
|
|
|
|
|
|
|
If IncludeCondition was true, this returns the item condition (e.g., New). |
118
|
|
|
|
|
|
|
If SearchRequest was used to search for the item condition or for |
119
|
|
|
|
|
|
|
a US eBay Motors vehicle, the list returns the item condition or the |
120
|
|
|
|
|
|
|
vehicle mileage and year. That is, the results only include attributes that |
121
|
|
|
|
|
|
|
would be included in the summary search results on the Web site, if any. |
122
|
|
|
|
|
|
|
In most categories, no summary attributes are returned in search results |
123
|
|
|
|
|
|
|
(even when the item is listed with Item Specifics.) Not returned when |
124
|
|
|
|
|
|
|
TicketFinder is used. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# Argument: 'ns:NameValueListArrayType' |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
sub setItemSpecific { |
131
|
|
|
|
|
|
|
my $self = shift; |
132
|
|
|
|
|
|
|
$self->{'ItemSpecific'} = shift |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head2 getItemSpecific() |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
Calls: GetSearchResults |
138
|
|
|
|
|
|
|
Returned: Conditionally |
139
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll |
140
|
|
|
|
|
|
|
GranularityLevel: Coarse |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
# Returns: 'ns:NameValueListArrayType' |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=cut |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub getItemSpecific { |
148
|
|
|
|
|
|
|
my $self = shift; |
149
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ItemSpecific' |
150
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NameValueListArrayType'); |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head2 setSearchResultValues() |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Contains additional information about the item listing returned in Item. This |
157
|
|
|
|
|
|
|
information includes whether the item has an image associated with it, |
158
|
|
|
|
|
|
|
and more. May contain zero, one, or multiple SearchResultValuesCodeType |
159
|
|
|
|
|
|
|
values indicating different pieces of additional information about |
160
|
|
|
|
|
|
|
the listing. These values are analogous to the icons that appear in an |
161
|
|
|
|
|
|
|
item listing's line in a Search page. |
162
|
|
|
|
|
|
|
Output only. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Argument: reference to an array |
165
|
|
|
|
|
|
|
of 'ns:SearchResultValuesCodeType' |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
sub setSearchResultValues { |
170
|
|
|
|
|
|
|
my $self = shift; |
171
|
|
|
|
|
|
|
$self->{'SearchResultValues'} = |
172
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 getSearchResultValues() |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Calls: GetSearchResults |
178
|
|
|
|
|
|
|
Returned: Conditionally |
179
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll |
180
|
|
|
|
|
|
|
GranularityLevel: Coarse |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
# Returns: reference to an array |
184
|
|
|
|
|
|
|
of 'ns:SearchResultValuesCodeType' |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=cut |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
sub getSearchResultValues { |
189
|
|
|
|
|
|
|
my $self = shift; |
190
|
|
|
|
|
|
|
return $self->_getDataTypeArray('SearchResultValues'); |
191
|
|
|
|
|
|
|
} |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
## Attribute and Property lists |
198
|
|
|
|
|
|
|
sub getPropertiesList { |
199
|
|
|
|
|
|
|
my $self = shift; |
200
|
|
|
|
|
|
|
return \@gaProperties; |
201
|
|
|
|
|
|
|
} |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
sub getAttributesList { |
204
|
|
|
|
|
|
|
my $self = shift; |
205
|
|
|
|
|
|
|
return \@gaAttributes; |
206
|
|
|
|
|
|
|
} |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
1; |