File Coverage

lib/eBay/API/XML/Call/GetProductFinder/GetProductFinderRequestType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::Call::GetProductFinder::GetProductFinderRequestType;
4              
5 1     1   1378 use strict;
  1         2  
  1         24  
6 1     1   5 use warnings;
  1         2  
  1         29  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetProductFinderRequestType.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::Call::GetProductFinder::GetProductFinderRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves data that you use to construct valid "product finder" queries
25             (queries against multiple attributes) against catalog products or (in some cases) listed items.
26             The attributes describe search criteria (e.g., Manufacturer), as appropriate for the category.
27             Use the results in combination with GetProductFinderXSL to render the Product Finder
28             in a graphical user interface.
29            
30             GetProductFinder does not conduct the actual product or listing search.
31             It only returns data about what you can search on. Use the data as input to
32             GetProductSearchResults to conduct the actual search for product information
33             or as input to GetSearchResults to conduct the search for listed items.
34             (Please note that this call may not return valid product finder IDs for some
35             GetSearchResults use cases. See the Knowledge Base article referenced below for details.)
36            
37             To retrieve single-attribute search criteria (querying against a single attribute, like UPC),
38             use GetProductSearchPage instead (only applicable for catalog searches).
39            
40             See the eBay Web Services Guide for an overview of Pre-filled Item Information and details about
41             searching for catalog products and for information about searching for listed items.
42              
43              
44              
45             =head1 SYNOPSIS
46              
47             =cut
48              
49              
50             =head1 INHERITANCE
51              
52             eBay::API::XML::Call::GetProductFinder::GetProductFinderRequestType inherits from the L class
53              
54             =cut
55              
56 1     1   33 use eBay::API::XML::RequestDataType;
  0            
  0            
57             our @ISA = ("eBay::API::XML::RequestDataType");
58              
59              
60              
61             my @gaProperties = ( [ 'AttributeSystemVersion', 'xs:string', '', '', '' ]
62             , [ 'ProductFinderID', 'xs:int', '1', '', '' ]
63             );
64             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
65              
66             my @gaAttributes = (
67             );
68             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
69              
70             =head1 Subroutines:
71              
72             =cut
73              
74             sub new {
75             my $classname = shift;
76             my %args = @_;
77             my $self = $classname->SUPER::new(%args);
78             return $self;
79             }
80              
81             sub isScalar {
82             return 0;
83             }
84              
85              
86              
87             =head2 setAttributeSystemVersion()
88              
89             A version of the product finder attribute definitions for the site.
90             Typically, an application passes the version value that was returned the last
91             time the application executed this call.
92             Filter that causes the call to return only the Product Finders
93             for which the attribute meta-data has changed since the specified version.
94             The latest version value is not necessarily greater than the previous
95             value that was returned. Therefore, when comparing versions, only
96             compare whether the value has changed.
97              
98             RequiredInput: No
99             # Argument: 'xs:string'
100              
101             =cut
102              
103             sub setAttributeSystemVersion {
104             my $self = shift;
105             $self->{'AttributeSystemVersion'} = shift
106             }
107              
108             =head2 getAttributeSystemVersion()
109              
110             # Returns: 'xs:string'
111              
112             =cut
113              
114             sub getAttributeSystemVersion {
115             my $self = shift;
116             return $self->{'AttributeSystemVersion'};
117             }
118              
119              
120             =head2 setProductFinderID()
121              
122             A number that uniquely identifies a product finder.
123            
124             For sell-side searches, you can determine the
125             product finder IDs for a category by calling GetCategory2CS.
126            
127             For buy-side searches, you can't use GetCategory2CS to reliably determine
128             the product finder IDs for an eBay category.
129             GetProductFinder may work for some attributes. Alternatively, you can
130             use the pfid parameter from the URL of the Product Finder search page
131             on the site you're interested in.
132             See the Knowledge Base article referenced below for more details.
133            
134             Multiple categories can be mapped to the same product finder ID.
135             You can pass zero or multiple IDs in the request. When IDs are specified, the call
136             only returns product finder meta-data for the specified product finders.
137             When no IDs are specified, the call returns all the current product finder
138             meta-data available on the site.
139              
140             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AttrGPF
141             Title: Retrieving Product Finder Meta-Data
142             , URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByItemSpecifics
143             Title: Searching by Item Specifics (Buy-Side Product Finder)
144             , URL: https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=560
145             Title: Knowledge Base: ProductFinderID for Buy-Side Searches
146              
147              
148             RequiredInput: No
149             # Argument: reference to an array
150             of 'xs:int'
151              
152             =cut
153              
154             sub setProductFinderID {
155             my $self = shift;
156             $self->{'ProductFinderID'} =
157             $self->convertArray_To_RefToArrayIfNeeded(@_);
158             }
159              
160             =head2 getProductFinderID()
161              
162             # Returns: reference to an array
163             of 'xs:int'
164              
165             =cut
166              
167             sub getProductFinderID {
168             my $self = shift;
169             return $self->_getDataTypeArray('ProductFinderID');
170             }
171              
172              
173              
174              
175              
176             ## Attribute and Property lists
177             sub getPropertiesList {
178             my $self = shift;
179             return \@gaProperties;
180             }
181              
182             sub getAttributesList {
183             my $self = shift;
184             return \@gaAttributes;
185             }
186              
187              
188              
189             1;