line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::SearchRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1139
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
6
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. SearchRequestType.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::SearchRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Specifies a query consisting of attributes. Only attributes that are returned |
25
|
|
|
|
|
|
|
from GetProductFinder can be used. See the Developer's Guide for more information. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::SearchRequestType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
67
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::SearchAttributesType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ProductFinderID', 'xs:int', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'SearchAttributes', 'ns:SearchAttributesType', '1' |
48
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::SearchAttributesType', '1' ] |
49
|
|
|
|
|
|
|
); |
50
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
my @gaAttributes = ( |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 Subroutines: |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub new { |
61
|
|
|
|
|
|
|
my $classname = shift; |
62
|
|
|
|
|
|
|
my %args = @_; |
63
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
64
|
|
|
|
|
|
|
return $self; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub isScalar { |
68
|
|
|
|
|
|
|
return 0; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 setProductFinderID() |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Numeric identifier for a buy-side product finder. A product finder defines how to |
76
|
|
|
|
|
|
|
search for Item Specifics in listings (e.g., how to search against a particular shoe size). |
77
|
|
|
|
|
|
|
See the eBay Web Services guide for details about product finders. |
78
|
|
|
|
|
|
|
You need to specify a product finder ID when you are searching against a listing's |
79
|
|
|
|
|
|
|
Item Specifics (i.e., when you use SearchAttributes). |
80
|
|
|
|
|
|
|
A few categories, such as US Event Tickets and US eBay Motors, can also return a subset of Item Specifics |
81
|
|
|
|
|
|
|
(e.g., the event venue, section, and row for a ticket listing) in the search results. |
82
|
|
|
|
|
|
|
To retrieve this data, you must specify the product finder ID, and also specify a detail level of |
83
|
|
|
|
|
|
|
ItemReturnAttributes or ReturnAll. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Use GetProductFinder to determine valid product finder IDs. If you have trouble with |
86
|
|
|
|
|
|
|
GetProductFinder, use the pfid parameter from the URL of the |
87
|
|
|
|
|
|
|
Product Finder search page on the site you're interested in. |
88
|
|
|
|
|
|
|
See the Knowledge Base article referenced below for more details. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
SeeLink: URL: https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=560 |
91
|
|
|
|
|
|
|
Title: Knowledge Base: ProductFinderID for Buy-Side Searches |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Calls: GetSearchResults |
94
|
|
|
|
|
|
|
RequiredInput: Conditionally |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
# Argument: 'xs:int' |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
sub setProductFinderID { |
101
|
|
|
|
|
|
|
my $self = shift; |
102
|
|
|
|
|
|
|
$self->{'ProductFinderID'} = shift |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 getProductFinderID() |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
# Returns: 'xs:int' |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=cut |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
sub getProductFinderID { |
112
|
|
|
|
|
|
|
my $self = shift; |
113
|
|
|
|
|
|
|
return $self->{'ProductFinderID'}; |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head2 setSearchAttributes() |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
A query consisting of a set of attributes (search criteria). If the query |
120
|
|
|
|
|
|
|
includes multiple attributes, the search engine will apply "AND" logic to the |
121
|
|
|
|
|
|
|
query. Use GetProductFinder to determine the list of valid attributes |
122
|
|
|
|
|
|
|
and how many are permitted for the specified characteristic set. |
123
|
|
|
|
|
|
|
If specified, ProductFinderID must also be specified. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Calls: GetSearchResults |
126
|
|
|
|
|
|
|
RequiredInput: No |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
# Argument: reference to an array |
129
|
|
|
|
|
|
|
of 'ns:SearchAttributesType' |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=cut |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
sub setSearchAttributes { |
134
|
|
|
|
|
|
|
my $self = shift; |
135
|
|
|
|
|
|
|
$self->{'SearchAttributes'} = |
136
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
137
|
|
|
|
|
|
|
} |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=head2 getSearchAttributes() |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
# Returns: reference to an array |
142
|
|
|
|
|
|
|
of 'ns:SearchAttributesType' |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub getSearchAttributes { |
147
|
|
|
|
|
|
|
my $self = shift; |
148
|
|
|
|
|
|
|
return $self->_getDataTypeArray('SearchAttributes'); |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
## Attribute and Property lists |
156
|
|
|
|
|
|
|
sub getPropertiesList { |
157
|
|
|
|
|
|
|
my $self = shift; |
158
|
|
|
|
|
|
|
return \@gaProperties; |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
sub getAttributesList { |
162
|
|
|
|
|
|
|
my $self = shift; |
163
|
|
|
|
|
|
|
return \@gaAttributes; |
164
|
|
|
|
|
|
|
} |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
1; |