line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ProductSearchPageType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1271
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ProductSearchPageType.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::ProductSearchPageType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::DataType::ProductSearchPageType inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
44
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CharacteristicType; |
41
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CharacteristicsSetType; |
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::DataElementSetType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::CharacteristicsSearchCodeType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'DataElementSet', 'ns:DataElementSetType', '1' |
47
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::DataElementSetType', '1' ] |
48
|
|
|
|
|
|
|
, [ 'SearchCharacteristicsSet', 'ns:CharacteristicsSetType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CharacteristicsSetType', '1' ] |
50
|
|
|
|
|
|
|
, [ 'SearchType', 'ns:CharacteristicsSearchCodeType', '' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::CharacteristicsSearchCodeType', '' ] |
52
|
|
|
|
|
|
|
, [ 'SortCharacteristics', 'ns:CharacteristicType', '1' |
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CharacteristicType', '1' ] |
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 setDataElementSet() |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Contains helpful hints for the user. Usage of this information is optional. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# Argument: reference to an array |
83
|
|
|
|
|
|
|
of 'ns:DataElementSetType' |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub setDataElementSet { |
88
|
|
|
|
|
|
|
my $self = shift; |
89
|
|
|
|
|
|
|
$self->{'DataElementSet'} = |
90
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 getDataElementSet() |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Calls: GetProductSearchPage |
96
|
|
|
|
|
|
|
Returned: Always |
97
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
# Returns: reference to an array |
100
|
|
|
|
|
|
|
of 'ns:DataElementSetType' |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
sub getDataElementSet { |
105
|
|
|
|
|
|
|
my $self = shift; |
106
|
|
|
|
|
|
|
return $self->_getDataTypeArray('DataElementSet'); |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 setSearchCharacteristicsSet() |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
A list of attributes that describe the choice of search criteria |
113
|
|
|
|
|
|
|
for the specified characteristic set. The order in which the criteria are returned |
114
|
|
|
|
|
|
|
is not significant and may vary for different requests. See the eBay Web Services guide |
115
|
|
|
|
|
|
|
for details about how to use this data as input to GetProductSearchResults. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# Argument: 'ns:CharacteristicsSetType' |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
sub setSearchCharacteristicsSet { |
122
|
|
|
|
|
|
|
my $self = shift; |
123
|
|
|
|
|
|
|
$self->{'SearchCharacteristicsSet'} = shift |
124
|
|
|
|
|
|
|
} |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 getSearchCharacteristicsSet() |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Calls: GetProductSearchPage |
129
|
|
|
|
|
|
|
Returned: Always |
130
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
# Returns: 'ns:CharacteristicsSetType' |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
sub getSearchCharacteristicsSet { |
137
|
|
|
|
|
|
|
my $self = shift; |
138
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'SearchCharacteristicsSet' |
139
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CharacteristicsSetType'); |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 setSearchType() |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
Ignore this field. GetProductSearchPage only retrieves criteria |
146
|
|
|
|
|
|
|
for single-attribute searches. |
147
|
|
|
|
|
|
|
Use GetProductFinder for valid multi-attribute search criteria. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# Argument: 'ns:CharacteristicsSearchCodeType' |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=cut |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub setSearchType { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
$self->{'SearchType'} = shift |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 getSearchType() |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Calls: GetProductSearchPage |
161
|
|
|
|
|
|
|
Returned: Always |
162
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Returns: 'ns:CharacteristicsSearchCodeType' |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getSearchType { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return $self->{'SearchType'}; |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 setSortCharacteristics() |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
A product aspect or feature that can be used as a key for sorting catalog |
177
|
|
|
|
|
|
|
search results. This does not necessarily match a searchable attribute. For |
178
|
|
|
|
|
|
|
example, you might be able to search on a product's title but sort the results |
179
|
|
|
|
|
|
|
by the release date or the manufacturer's suggested retail price (MSRP). At |
180
|
|
|
|
|
|
|
least one sort attribute is always returned. Applications should ensure that |
181
|
|
|
|
|
|
|
only one attribute is selected as a sort key from these results (before |
182
|
|
|
|
|
|
|
calling GetProductSearchResults). The default sort key is the one with the |
183
|
|
|
|
|
|
|
lowest DisplaySequence value. The order in which the SortCharacteristics nodes |
184
|
|
|
|
|
|
|
are returned is not significant and may vary for different requests. See the |
185
|
|
|
|
|
|
|
eBay Web Services guide for details about how to use this data as input to |
186
|
|
|
|
|
|
|
GetProductSearchResults. |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
# Argument: reference to an array |
189
|
|
|
|
|
|
|
of 'ns:CharacteristicType' |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=cut |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
sub setSortCharacteristics { |
194
|
|
|
|
|
|
|
my $self = shift; |
195
|
|
|
|
|
|
|
$self->{'SortCharacteristics'} = |
196
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
197
|
|
|
|
|
|
|
} |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
=head2 getSortCharacteristics() |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
Calls: GetProductSearchPage |
202
|
|
|
|
|
|
|
Returned: Always |
203
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
# Returns: reference to an array |
206
|
|
|
|
|
|
|
of 'ns:CharacteristicType' |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=cut |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
sub getSortCharacteristics { |
211
|
|
|
|
|
|
|
my $self = shift; |
212
|
|
|
|
|
|
|
return $self->_getDataTypeArray('SortCharacteristics'); |
213
|
|
|
|
|
|
|
} |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
## Attribute and Property lists |
220
|
|
|
|
|
|
|
sub getPropertiesList { |
221
|
|
|
|
|
|
|
my $self = shift; |
222
|
|
|
|
|
|
|
return \@gaProperties; |
223
|
|
|
|
|
|
|
} |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub getAttributesList { |
226
|
|
|
|
|
|
|
my $self = shift; |
227
|
|
|
|
|
|
|
return \@gaAttributes; |
228
|
|
|
|
|
|
|
} |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
1; |