File Coverage

lib/eBay/API/XML/Call/GetWantItNowSearchResults/GetWantItNowSearchResultsRequestType.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::GetWantItNowSearchResults::GetWantItNowSearchResultsRequestType;
4              
5 1     1   1633 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         3  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetWantItNowSearchResultsRequestType.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::GetWantItNowSearchResults::GetWantItNowSearchResultsRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves a list of active Want It Now posts that match specified keywords
25             and/or a specific category ID. The response contains the following data:
26             CategoryID, PostID, StartTime, ResponseCount, Site, and Title. To get the post
27             description (Description), you must use GetWantItNowPost to retrieve individual
28             posts.
29              
30              
31              
32             =head1 SYNOPSIS
33              
34             =cut
35              
36              
37             =head1 INHERITANCE
38              
39             eBay::API::XML::Call::GetWantItNowSearchResults::GetWantItNowSearchResultsRequestType inherits from the L class
40              
41             =cut
42              
43 1     1   34 use eBay::API::XML::RequestDataType;
  0            
  0            
44             our @ISA = ("eBay::API::XML::RequestDataType");
45              
46             use eBay::API::XML::DataType::PaginationType;
47              
48              
49             my @gaProperties = ( [ 'CategoryID', 'xs:string', '', '', '' ]
50             , [ 'Pagination', 'ns:PaginationType', ''
51             ,'eBay::API::XML::DataType::PaginationType', '1' ]
52             , [ 'Query', 'xs:string', '', '', '' ]
53             , [ 'SearchInDescription', 'xs:boolean', '', '', '' ]
54             , [ 'SearchWorldwide', 'xs:boolean', '', '', '' ]
55             );
56             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
57              
58             my @gaAttributes = (
59             );
60             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
61              
62             =head1 Subroutines:
63              
64             =cut
65              
66             sub new {
67             my $classname = shift;
68             my %args = @_;
69             my $self = $classname->SUPER::new(%args);
70             return $self;
71             }
72              
73             sub isScalar {
74             return 0;
75             }
76              
77              
78              
79             =head2 setCategoryID()
80              
81             Limits the result set to just those Want It Now posts listed in the
82             specified category. Defaults to all categories if no category ID is
83             specified. If the specified category ID does not match an existing
84             category for the site, an invalid-category error message is returned.
85             Controls the set of listings to return (not the details to return for each
86             listing).
87             You must specify a Query and/or a CategoryID in the request.
88              
89             MaxLength: 10
90              
91             RequiredInput: No
92             # Argument: 'xs:string'
93              
94             =cut
95              
96             sub setCategoryID {
97             my $self = shift;
98             $self->{'CategoryID'} = shift
99             }
100              
101             =head2 getCategoryID()
102              
103             # Returns: 'xs:string'
104              
105             =cut
106              
107             sub getCategoryID {
108             my $self = shift;
109             return $self->{'CategoryID'};
110             }
111              
112              
113             =head2 setPagination()
114              
115             Controls the pagination of the result set. Child elements specify the
116             maximum number of item listings to return per call and which page of data
117             to return.
118              
119             RequiredInput: No
120             # Argument: 'ns:PaginationType'
121              
122             =cut
123              
124             sub setPagination {
125             my $self = shift;
126             $self->{'Pagination'} = shift
127             }
128              
129             =head2 getPagination()
130              
131             # Returns: 'ns:PaginationType'
132              
133             =cut
134              
135             sub getPagination {
136             my $self = shift;
137             return $self->_getDataTypeInstance( 'Pagination'
138             ,'eBay::API::XML::DataType::PaginationType');
139             }
140              
141              
142             =head2 setQuery()
143              
144             Specifies a search string. The search string consists of one or more
145             keywords to search for in the listing title. Note that the post
146             description will also be searched if SearchInDescription is enabled.
147             By default, requests return a list of Want It Now posts that include all
148             of the keywords specified in the Query. All words used in the query,
149             including "and," "or," and "the," will be treated as keywords. You can,
150             however, use modifiers and wildcards (e.g., +, -, and *) in the Query
151             field to create more complex searches. Be careful when using spaces before
152             or after modifiers and wildcards (+, -, or *), as the spaces can affect
153             the query logic.
154             See the eBay Web Services Guide for a list of valid search keyword query
155             operators and examples.
156              
157             MaxLength: 350 (characters)
158              
159             RequiredInput: No
160             # Argument: 'xs:string'
161              
162             =cut
163              
164             sub setQuery {
165             my $self = shift;
166             $self->{'Query'} = shift
167             }
168              
169             =head2 getQuery()
170              
171             # Returns: 'xs:string'
172              
173             =cut
174              
175             sub getQuery {
176             my $self = shift;
177             return $self->{'Query'};
178             }
179              
180              
181             =head2 setSearchInDescription()
182              
183             If true, include the description field of Want It Now posts in the keyword search. Want
184             It Now posts returned are those where specified search keywords appear in
185             either the description or the title. This is the default behavior if SearchInDescription
186             is not specified. If false, only the title will be searched. SearchInDescription is an
187             optional input.
188              
189             RequiredInput: No
190             # Argument: 'xs:boolean'
191              
192             =cut
193              
194             sub setSearchInDescription {
195             my $self = shift;
196             $self->{'SearchInDescription'} = shift
197             }
198              
199             =head2 isSearchInDescription()
200              
201             # Returns: 'xs:boolean'
202              
203             =cut
204              
205             sub isSearchInDescription {
206             my $self = shift;
207             return $self->{'SearchInDescription'};
208             }
209              
210              
211             =head2 setSearchWorldwide()
212              
213             If true, the search applies to all eBay sites. If false, the search is
214             limited to the site specified in the URL query string when the call is
215             made.
216              
217             RequiredInput: No
218             # Argument: 'xs:boolean'
219              
220             =cut
221              
222             sub setSearchWorldwide {
223             my $self = shift;
224             $self->{'SearchWorldwide'} = shift
225             }
226              
227             =head2 isSearchWorldwide()
228              
229             # Returns: 'xs:boolean'
230              
231             =cut
232              
233             sub isSearchWorldwide {
234             my $self = shift;
235             return $self->{'SearchWorldwide'};
236             }
237              
238              
239              
240              
241              
242             ## Attribute and Property lists
243             sub getPropertiesList {
244             my $self = shift;
245             return \@gaProperties;
246             }
247              
248             sub getAttributesList {
249             my $self = shift;
250             return \@gaAttributes;
251             }
252              
253              
254              
255             1;