File Coverage

lib/eBay/API/XML/Call/GetSellerList.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;
4              
5 1     1   2501 use strict;
  1         2  
  1         27  
6 1     1   4 use warnings;
  1         2  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetSellerList.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
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetSellerList inherits from the L class
34              
35             =cut
36              
37 1     1   34 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetSellerList::GetSellerListRequestType;
41             use eBay::API::XML::Call::GetSellerList::GetSellerListResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetSellerList';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetSellerList::GetSellerListRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetSellerList::GetSellerListResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setAdminEndedItemsOnly()
63              
64             Specifies whether to return only items that were administratively ended
65             based on a policy violation.
66              
67             RequiredInput: No
68             # Argument: 'xs:boolean'
69              
70             =cut
71            
72             sub setAdminEndedItemsOnly {
73             my $self = shift;
74             my $sAdminEndedItemsOnly = shift;
75             $self->getRequestDataType()->setAdminEndedItemsOnly($sAdminEndedItemsOnly);
76             }
77              
78             =head2 setCategoryID()
79              
80             The category ID for the items retrieved.
81             If you specify CategoryID in a GetSellerList call,
82             the response contains only items in the category you specify.
83              
84             RequiredInput: No
85             # Argument: 'xs:int'
86              
87             =cut
88            
89             sub setCategoryID {
90             my $self = shift;
91             my $sCategoryID = shift;
92             $self->getRequestDataType()->setCategoryID($sCategoryID);
93             }
94              
95             =head2 setEndTimeFrom()
96              
97             Specifies the earliest (oldest) date to use in a date range filter based on item end time.
98             Specify either the end-time range or the start-time range filter in every request. Each of the
99             time ranges must be a value less than 120 days.
100              
101             RequiredInput: Conditionally
102             # Argument: 'xs:dateTime'
103              
104             =cut
105            
106             sub setEndTimeFrom {
107             my $self = shift;
108             my $sEndTimeFrom = shift;
109             $self->getRequestDataType()->setEndTimeFrom($sEndTimeFrom);
110             }
111              
112             =head2 setEndTimeTo()
113              
114             Specifies the latest (most recent) date to use in a date range filter based on item end time.
115             Must be specified if EndTimeFrom is specified.
116              
117             RequiredInput: Conditionally
118             # Argument: 'xs:dateTime'
119              
120             =cut
121            
122             sub setEndTimeTo {
123             my $self = shift;
124             my $sEndTimeTo = shift;
125             $self->getRequestDataType()->setEndTimeTo($sEndTimeTo);
126             }
127              
128             =head2 setGranularityLevel()
129              
130             Specifies the subset of item and user fields to return.
131             See GetSellerList in the eBay Web Services guide for a list
132             of the fields that are returned for each granularity level.
133             For GetSellerList, use DetailLevel or GranularityLevel in a request, but not both.
134             For GetSellerList, if GranularityLevel is specified, DetailLevel is ignored.
135              
136             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GetSellerList_BP
137             Title: GetSellerList Best Practices
138             PresentDetails: Yes
139              
140             RequiredInput: No
141             # Argument: 'ns:GranularityLevelCodeType'
142              
143             =cut
144            
145             sub setGranularityLevel {
146             my $self = shift;
147             my $sGranularityLevel = shift;
148             $self->getRequestDataType()->setGranularityLevel($sGranularityLevel);
149             }
150              
151             =head2 setIncludeWatchCount()
152              
153             Specifies whether to include WatchCount in Item nodes returned.
154             WatchCount is only returned with DetailLevel ReturnAll.
155              
156             RequiredInput: No
157             # Argument: 'xs:boolean'
158              
159             =cut
160            
161             sub setIncludeWatchCount {
162             my $self = shift;
163             my $sIncludeWatchCount = shift;
164             $self->getRequestDataType()->setIncludeWatchCount($sIncludeWatchCount);
165             }
166              
167             =head2 setMotorsDealerUsers()
168              
169             Specifies the list of Motors Dealer sellers for which a special set of
170             metrics can be requested. Applies to eBay Motors Pro applications only.
171              
172             RequiredInput: No
173             # Argument: 'ns:UserIDArrayType'
174              
175             =cut
176            
177             sub setMotorsDealerUsers {
178             my $self = shift;
179             my $pMotorsDealerUsers = shift;
180             $self->getRequestDataType()->setMotorsDealerUsers($pMotorsDealerUsers);
181             }
182              
183             =head2 setPagination()
184              
185             Contains the data controlling the pagination of the returned values: how many items
186             are returned per page of data (per call) and the number of the page to return with
187             the current call.
188              
189             RequiredInput: Yes
190             # Argument: 'ns:PaginationType'
191              
192             =cut
193            
194             sub setPagination {
195             my $self = shift;
196             my $pPagination = shift;
197             $self->getRequestDataType()->setPagination($pPagination);
198             }
199              
200             =head2 setSKUArray()
201              
202             Specifies a set of seller SKUs to use as a filter. Only items with the specified SKUs are
203             returned. Do not specify this tag if you do not want to filter by SKU. Corresponds to the SKU property
204             that is part of ItemType and that can be provided when, for example, you use the AddItem call.
205              
206             RequiredInput: No
207             # Argument: 'ns:SKUArrayType'
208              
209             =cut
210            
211             sub setSKUArray {
212             my $self = shift;
213             my $pSKUArray = shift;
214             $self->getRequestDataType()->setSKUArray($pSKUArray);
215             }
216              
217             =head2 setSort()
218              
219             Specifies the order in which returned items are sorted (based on the end dates of the
220             item listings). Valid values:
221             0 = No sorting
222             1 = Sort in descending order
223             2 = Sort in ascending order
224              
225             RequiredInput: No
226             # Argument: 'xs:int'
227              
228             =cut
229            
230             sub setSort {
231             my $self = shift;
232             my $sSort = shift;
233             $self->getRequestDataType()->setSort($sSort);
234             }
235              
236             =head2 setStartTimeFrom()
237              
238             Specifies the earliest (oldest) date to use in a date range filter based on item
239             start time. Specify either the end time range or start time range filter in every request.
240             Each of the time ranges must be a value less than 120 days.
241              
242             RequiredInput: Conditionally
243             # Argument: 'xs:dateTime'
244              
245             =cut
246            
247             sub setStartTimeFrom {
248             my $self = shift;
249             my $sStartTimeFrom = shift;
250             $self->getRequestDataType()->setStartTimeFrom($sStartTimeFrom);
251             }
252              
253             =head2 setStartTimeTo()
254              
255             Specifies the latest (most recent) date to use in a date range filter based on item
256             start time. Must be specified if StartTimeFrom is specified.
257              
258             RequiredInput: Conditionally
259             # Argument: 'xs:dateTime'
260              
261             =cut
262            
263             sub setStartTimeTo {
264             my $self = shift;
265             my $sStartTimeTo = shift;
266             $self->getRequestDataType()->setStartTimeTo($sStartTimeTo);
267             }
268              
269             =head2 setUserID()
270              
271             Specifies the seller whose items will be returned. UserID is an optional input.
272             If not specified, retrieves events for the user identified by
273             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
274             their own listings and bidders who know the user IDs of their sellers
275             will be able to make this API call successfully. See Working with Anonymous User Informationin the eBay Web Services Guide for more information.
276              
277             RequiredInput: No
278             # Argument: 'ns:UserIDType'
279              
280             =cut
281            
282             sub setUserID {
283             my $self = shift;
284             my $pUserID = shift;
285             $self->getRequestDataType()->setUserID($pUserID);
286             }
287              
288              
289              
290             #
291             # output properties
292             #
293              
294             =head2 isHasMoreItems()
295              
296             If true, there are more items yet to be retrieved. Additional
297             GetSellerList calls with higher page numbers or more items per page must
298             be made to retrieve these items. Not returned if no items match the
299             request.
300              
301             Returned: Conditionally
302             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
303             # Returns: 'xs:boolean'
304              
305             =cut
306            
307             sub isHasMoreItems {
308             my $self = shift;
309             return $self->getResponseDataType()->isHasMoreItems();
310             }
311              
312             =head2 getItemArray()
313              
314             Contains the list of the seller's items, one ItemType object per item.
315             Returns empty if no items are available that match the request.
316              
317             Returned: Always
318             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
319             # Returns: 'ns:ItemArrayType'
320              
321             =cut
322            
323             sub getItemArray {
324             my $self = shift;
325             return $self->getResponseDataType()->getItemArray();
326             }
327              
328             =head2 getItemsPerPage()
329              
330             Indicates the number of items that are being returned per page of data
331             (i.e., per call). Will be the same as the value specified in the
332             Pagination.EntriesPerPage input. Only returned if items are returned.
333              
334             Returned: Conditionally
335             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
336             # Returns: 'xs:int'
337              
338             =cut
339            
340             sub getItemsPerPage {
341             my $self = shift;
342             return $self->getResponseDataType()->getItemsPerPage();
343             }
344              
345             =head2 getPageNumber()
346              
347             Indicates which page of data was just returned. Will be the same as the
348             value specified in the Pagination.PageNumber input. (If the input is
349             higher than the total number of pages, the call fails with an error.)
350             Only returned if items are returned.
351              
352             Returned: Conditionally
353             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
354             # Returns: 'xs:int'
355              
356             =cut
357            
358             sub getPageNumber {
359             my $self = shift;
360             return $self->getResponseDataType()->getPageNumber();
361             }
362              
363             =head2 getPaginationResult()
364              
365             Contains information regarding the pagination of data (if pagination is
366             used), including total number of pages and total number of entries.
367              
368             Returned: Always
369             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
370             # Returns: 'ns:PaginationResultType'
371              
372             =cut
373            
374             sub getPaginationResult {
375             my $self = shift;
376             return $self->getResponseDataType()->getPaginationResult();
377             }
378              
379             =head2 getReturnedItemCountActual()
380              
381             Indicates the total number of items returned (i.e., the number of
382             ItemType objects in ItemArray).
383              
384             Returned: Always
385             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
386             # Returns: 'xs:int'
387              
388             =cut
389            
390             sub getReturnedItemCountActual {
391             my $self = shift;
392             return $self->getResponseDataType()->getReturnedItemCountActual();
393             }
394              
395             =head2 getSeller()
396              
397             Indicates the seller whose items are returned. The seller is the eBay
398             member whose UserID was passed in the request. If UserID was not
399             specified, the seller is the user who made the request (identified by
400             eBayAuthToken).
401              
402             Returned: Always
403             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
404             GranularityLevel: Fine
405              
406             # Returns: 'ns:UserType'
407              
408             =cut
409            
410             sub getSeller {
411             my $self = shift;
412             return $self->getResponseDataType()->getSeller();
413             }
414              
415              
416              
417              
418              
419             1;