File Coverage

lib/eBay/API/XML/Call/GetSellerList/GetSellerListRequestType.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::GetSellerList::GetSellerListRequestType;
4              
5 1     1   1549 use strict;
  1         2  
  1         35  
6 1     1   5 use warnings;
  1         2  
  1         33  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetSellerListRequestType.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::GetSellerList::GetSellerListRequestType
21              
22             =head1 DESCRIPTION
23              
24             Returns a list of items a seller has listed for auction.
25             Returns an array of zero, one, or multiple items.
26             You can specify that the returned data include
27             only items that start or end within a specified date range.
28              
29              
30              
31             =head1 SYNOPSIS
32              
33             =cut
34              
35              
36             =head1 INHERITANCE
37              
38             eBay::API::XML::Call::GetSellerList::GetSellerListRequestType inherits from the L class
39              
40             =cut
41              
42 1     1   45 use eBay::API::XML::RequestDataType;
  0            
  0            
43             our @ISA = ("eBay::API::XML::RequestDataType");
44              
45             use eBay::API::XML::DataType::PaginationType;
46             use eBay::API::XML::DataType::SKUArrayType;
47             use eBay::API::XML::DataType::UserIDArrayType;
48             use eBay::API::XML::DataType::UserIDType;
49             use eBay::API::XML::DataType::Enum::GranularityLevelCodeType;
50              
51              
52             my @gaProperties = ( [ 'AdminEndedItemsOnly', 'xs:boolean', '', '', '' ]
53             , [ 'CategoryID', 'xs:int', '', '', '' ]
54             , [ 'EndTimeFrom', 'xs:dateTime', '', '', '' ]
55             , [ 'EndTimeTo', 'xs:dateTime', '', '', '' ]
56             , [ 'GranularityLevel', 'ns:GranularityLevelCodeType', ''
57             ,'eBay::API::XML::DataType::Enum::GranularityLevelCodeType', '' ]
58             , [ 'IncludeWatchCount', 'xs:boolean', '', '', '' ]
59             , [ 'MotorsDealerUsers', 'ns:UserIDArrayType', ''
60             ,'eBay::API::XML::DataType::UserIDArrayType', '1' ]
61             , [ 'Pagination', 'ns:PaginationType', ''
62             ,'eBay::API::XML::DataType::PaginationType', '1' ]
63             , [ 'SKUArray', 'ns:SKUArrayType', ''
64             ,'eBay::API::XML::DataType::SKUArrayType', '1' ]
65             , [ 'Sort', 'xs:int', '', '', '' ]
66             , [ 'StartTimeFrom', 'xs:dateTime', '', '', '' ]
67             , [ 'StartTimeTo', 'xs:dateTime', '', '', '' ]
68             , [ 'UserID', 'ns:UserIDType', ''
69             ,'eBay::API::XML::DataType::UserIDType', '1' ]
70             );
71             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
72              
73             my @gaAttributes = (
74             );
75             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
76              
77             =head1 Subroutines:
78              
79             =cut
80              
81             sub new {
82             my $classname = shift;
83             my %args = @_;
84             my $self = $classname->SUPER::new(%args);
85             return $self;
86             }
87              
88             sub isScalar {
89             return 0;
90             }
91              
92              
93              
94             =head2 setAdminEndedItemsOnly()
95              
96             Specifies whether to return only items that were administratively ended
97             based on a policy violation.
98              
99             RequiredInput: No
100             # Argument: 'xs:boolean'
101              
102             =cut
103              
104             sub setAdminEndedItemsOnly {
105             my $self = shift;
106             $self->{'AdminEndedItemsOnly'} = shift
107             }
108              
109             =head2 isAdminEndedItemsOnly()
110              
111             # Returns: 'xs:boolean'
112              
113             =cut
114              
115             sub isAdminEndedItemsOnly {
116             my $self = shift;
117             return $self->{'AdminEndedItemsOnly'};
118             }
119              
120              
121             =head2 setCategoryID()
122              
123             The category ID for the items retrieved.
124             If you specify CategoryID in a GetSellerList call,
125             the response contains only items in the category you specify.
126              
127             RequiredInput: No
128             # Argument: 'xs:int'
129              
130             =cut
131              
132             sub setCategoryID {
133             my $self = shift;
134             $self->{'CategoryID'} = shift
135             }
136              
137             =head2 getCategoryID()
138              
139             # Returns: 'xs:int'
140              
141             =cut
142              
143             sub getCategoryID {
144             my $self = shift;
145             return $self->{'CategoryID'};
146             }
147              
148              
149             =head2 setEndTimeFrom()
150              
151             Specifies the earliest (oldest) date to use in a date range filter based on item end time.
152             Specify either the end-time range or the start-time range filter in every request. Each of the
153             time ranges must be a value less than 120 days.
154              
155             RequiredInput: Conditionally
156             # Argument: 'xs:dateTime'
157              
158             =cut
159              
160             sub setEndTimeFrom {
161             my $self = shift;
162             $self->{'EndTimeFrom'} = shift
163             }
164              
165             =head2 getEndTimeFrom()
166              
167             # Returns: 'xs:dateTime'
168              
169             =cut
170              
171             sub getEndTimeFrom {
172             my $self = shift;
173             return $self->{'EndTimeFrom'};
174             }
175              
176              
177             =head2 setEndTimeTo()
178              
179             Specifies the latest (most recent) date to use in a date range filter based on item end time.
180             Must be specified if EndTimeFrom is specified.
181              
182             RequiredInput: Conditionally
183             # Argument: 'xs:dateTime'
184              
185             =cut
186              
187             sub setEndTimeTo {
188             my $self = shift;
189             $self->{'EndTimeTo'} = shift
190             }
191              
192             =head2 getEndTimeTo()
193              
194             # Returns: 'xs:dateTime'
195              
196             =cut
197              
198             sub getEndTimeTo {
199             my $self = shift;
200             return $self->{'EndTimeTo'};
201             }
202              
203              
204             =head2 setGranularityLevel()
205              
206             Specifies the subset of item and user fields to return.
207             See GetSellerList in the eBay Web Services guide for a list
208             of the fields that are returned for each granularity level.
209             For GetSellerList, use DetailLevel or GranularityLevel in a request, but not both.
210             For GetSellerList, if GranularityLevel is specified, DetailLevel is ignored.
211              
212             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GetSellerList_BP
213             Title: GetSellerList Best Practices
214             PresentDetails: Yes
215              
216             RequiredInput: No
217             # Argument: 'ns:GranularityLevelCodeType'
218              
219             =cut
220              
221             sub setGranularityLevel {
222             my $self = shift;
223             $self->{'GranularityLevel'} = shift
224             }
225              
226             =head2 getGranularityLevel()
227              
228             # Returns: 'ns:GranularityLevelCodeType'
229              
230             =cut
231              
232             sub getGranularityLevel {
233             my $self = shift;
234             return $self->{'GranularityLevel'};
235             }
236              
237              
238             =head2 setIncludeWatchCount()
239              
240             Specifies whether to include WatchCount in Item nodes returned.
241             WatchCount is only returned with DetailLevel ReturnAll.
242              
243             RequiredInput: No
244             # Argument: 'xs:boolean'
245              
246             =cut
247              
248             sub setIncludeWatchCount {
249             my $self = shift;
250             $self->{'IncludeWatchCount'} = shift
251             }
252              
253             =head2 isIncludeWatchCount()
254              
255             # Returns: 'xs:boolean'
256              
257             =cut
258              
259             sub isIncludeWatchCount {
260             my $self = shift;
261             return $self->{'IncludeWatchCount'};
262             }
263              
264              
265             =head2 setMotorsDealerUsers()
266              
267             Specifies the list of Motors Dealer sellers for which a special set of
268             metrics can be requested. Applies to eBay Motors Pro applications only.
269              
270             RequiredInput: No
271             # Argument: 'ns:UserIDArrayType'
272              
273             =cut
274              
275             sub setMotorsDealerUsers {
276             my $self = shift;
277             $self->{'MotorsDealerUsers'} = shift
278             }
279              
280             =head2 getMotorsDealerUsers()
281              
282             # Returns: 'ns:UserIDArrayType'
283              
284             =cut
285              
286             sub getMotorsDealerUsers {
287             my $self = shift;
288             return $self->_getDataTypeInstance( 'MotorsDealerUsers'
289             ,'eBay::API::XML::DataType::UserIDArrayType');
290             }
291              
292              
293             =head2 setPagination()
294              
295             Contains the data controlling the pagination of the returned values: how many items
296             are returned per page of data (per call) and the number of the page to return with
297             the current call.
298              
299             RequiredInput: Yes
300             # Argument: 'ns:PaginationType'
301              
302             =cut
303              
304             sub setPagination {
305             my $self = shift;
306             $self->{'Pagination'} = shift
307             }
308              
309             =head2 getPagination()
310              
311             # Returns: 'ns:PaginationType'
312              
313             =cut
314              
315             sub getPagination {
316             my $self = shift;
317             return $self->_getDataTypeInstance( 'Pagination'
318             ,'eBay::API::XML::DataType::PaginationType');
319             }
320              
321              
322             =head2 setSKUArray()
323              
324             Specifies a set of seller SKUs to use as a filter. Only items with the specified SKUs are
325             returned. Do not specify this tag if you do not want to filter by SKU. Corresponds to the SKU property
326             that is part of ItemType and that can be provided when, for example, you use the AddItem call.
327              
328             RequiredInput: No
329             # Argument: 'ns:SKUArrayType'
330              
331             =cut
332              
333             sub setSKUArray {
334             my $self = shift;
335             $self->{'SKUArray'} = shift
336             }
337              
338             =head2 getSKUArray()
339              
340             # Returns: 'ns:SKUArrayType'
341              
342             =cut
343              
344             sub getSKUArray {
345             my $self = shift;
346             return $self->_getDataTypeInstance( 'SKUArray'
347             ,'eBay::API::XML::DataType::SKUArrayType');
348             }
349              
350              
351             =head2 setSort()
352              
353             Specifies the order in which returned items are sorted (based on the end dates of the
354             item listings). Valid values:
355             0 = No sorting
356             1 = Sort in descending order
357             2 = Sort in ascending order
358              
359             RequiredInput: No
360             # Argument: 'xs:int'
361              
362             =cut
363              
364             sub setSort {
365             my $self = shift;
366             $self->{'Sort'} = shift
367             }
368              
369             =head2 getSort()
370              
371             # Returns: 'xs:int'
372              
373             =cut
374              
375             sub getSort {
376             my $self = shift;
377             return $self->{'Sort'};
378             }
379              
380              
381             =head2 setStartTimeFrom()
382              
383             Specifies the earliest (oldest) date to use in a date range filter based on item
384             start time. Specify either the end time range or start time range filter in every request.
385             Each of the time ranges must be a value less than 120 days.
386              
387             RequiredInput: Conditionally
388             # Argument: 'xs:dateTime'
389              
390             =cut
391              
392             sub setStartTimeFrom {
393             my $self = shift;
394             $self->{'StartTimeFrom'} = shift
395             }
396              
397             =head2 getStartTimeFrom()
398              
399             # Returns: 'xs:dateTime'
400              
401             =cut
402              
403             sub getStartTimeFrom {
404             my $self = shift;
405             return $self->{'StartTimeFrom'};
406             }
407              
408              
409             =head2 setStartTimeTo()
410              
411             Specifies the latest (most recent) date to use in a date range filter based on item
412             start time. Must be specified if StartTimeFrom is specified.
413              
414             RequiredInput: Conditionally
415             # Argument: 'xs:dateTime'
416              
417             =cut
418              
419             sub setStartTimeTo {
420             my $self = shift;
421             $self->{'StartTimeTo'} = shift
422             }
423              
424             =head2 getStartTimeTo()
425              
426             # Returns: 'xs:dateTime'
427              
428             =cut
429              
430             sub getStartTimeTo {
431             my $self = shift;
432             return $self->{'StartTimeTo'};
433             }
434              
435              
436             =head2 setUserID()
437              
438             Specifies the seller whose items will be returned. UserID is an optional input.
439             If not specified, retrieves events for the user identified by
440             the authentication token passed in the request. Note that since user information is anonymous to everyone except the bidder and the seller (during an active auction), only sellers looking for information about
441             their own listings and bidders who know the user IDs of their sellers
442             will be able to make this API call successfully. See Working with Anonymous User Informationin the eBay Web Services Guide for more information.
443              
444             RequiredInput: No
445             # Argument: 'ns:UserIDType'
446              
447             =cut
448              
449             sub setUserID {
450             my $self = shift;
451             $self->{'UserID'} = shift
452             }
453              
454             =head2 getUserID()
455              
456             # Returns: 'ns:UserIDType'
457              
458             =cut
459              
460             sub getUserID {
461             my $self = shift;
462             return $self->_getDataTypeInstance( 'UserID'
463             ,'eBay::API::XML::DataType::UserIDType');
464             }
465              
466              
467              
468              
469              
470             ## Attribute and Property lists
471             sub getPropertiesList {
472             my $self = shift;
473             return \@gaProperties;
474             }
475              
476             sub getAttributesList {
477             my $self = shift;
478             return \@gaAttributes;
479             }
480              
481              
482              
483             1;