File Coverage

lib/eBay/API/XML/Call/GetSellerEvents.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::GetSellerEvents;
4              
5 1     1   2264 use strict;
  1         2  
  1         34  
6 1     1   4 use warnings;
  1         2  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetSellerEvents.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::GetSellerEvents
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetSellerEvents inherits from the L class
34              
35             =cut
36              
37 1     1   33 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetSellerEvents::GetSellerEventsRequestType;
41             use eBay::API::XML::Call::GetSellerEvents::GetSellerEventsResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetSellerEvents';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetSellerEvents::GetSellerEventsRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetSellerEvents::GetSellerEventsResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setEndTimeFrom()
63              
64             Describes the earliest (oldest) date to use in a date range filter based
65             on item end time. Must be specified if EndTimeTo is specified. Either
66             the StartTimeFrom, EndTimeFrom, or ModTimeFrom filter must be specified.
67             If you do not specify the correspoding To filter,
68             it is set to the time you make the call.
69             For better results, the time period you use should be less than 48 hours.
70              
71             RequiredInput: Conditionally
72             # Argument: 'xs:dateTime'
73              
74             =cut
75            
76             sub setEndTimeFrom {
77             my $self = shift;
78             my $sEndTimeFrom = shift;
79             $self->getRequestDataType()->setEndTimeFrom($sEndTimeFrom);
80             }
81              
82             =head2 setEndTimeTo()
83              
84             Describes the latest (most recent) date to use in a date range filter
85             based on item end time. If you specify the corresponding From filter,
86             but you do not include EndTimeTo, then EndTimeTo is set
87             to the time you make the call.
88              
89             RequiredInput: No
90             # Argument: 'xs:dateTime'
91              
92             =cut
93            
94             sub setEndTimeTo {
95             my $self = shift;
96             my $sEndTimeTo = shift;
97             $self->getRequestDataType()->setEndTimeTo($sEndTimeTo);
98             }
99              
100             =head2 setIncludeWatchCount()
101              
102             Specifies whether to include WatchCount in Item nodes returned. WatchCount
103             is the number of watches buyers have placed on the item from their My eBay
104             accounts.
105              
106             RequiredInput: No
107             # Argument: 'xs:boolean'
108              
109             =cut
110            
111             sub setIncludeWatchCount {
112             my $self = shift;
113             my $sIncludeWatchCount = shift;
114             $self->getRequestDataType()->setIncludeWatchCount($sIncludeWatchCount);
115             }
116              
117             =head2 setModTimeFrom()
118              
119             Describes the earliest (oldest) date to use in a date range filter based
120             on item modification time. Must be specified if ModTimeTo is specified. Either
121             the StartTimeFrom, EndTimeFrom, or ModTimeFrom filter must be specified.
122             If you do not specify the correspoding To filter,
123             it is set to the time you make the call.
124            

125             For better results, the time period you use should be less than 48 hours.
126            

127             If an unexpected item is returned (including an old item
128             or an unchanged active item), please ignore the item.
129             Although a maintenance process may have triggered a change in the modification time,
130             item characteristics are unchanged.
131              
132             RequiredInput: Conditionally
133             # Argument: 'xs:dateTime'
134              
135             =cut
136            
137             sub setModTimeFrom {
138             my $self = shift;
139             my $sModTimeFrom = shift;
140             $self->getRequestDataType()->setModTimeFrom($sModTimeFrom);
141             }
142              
143             =head2 setModTimeTo()
144              
145             Describes the latest (most recent) date to use in a date range filter
146             based on the time an item's record was modified. If you specify
147             the corresponding From filter, but you do not include ModTimeTo,
148             then ModTimeTo is set to the time you make the call.
149              
150             RequiredInput: No
151             # Argument: 'xs:dateTime'
152              
153             =cut
154            
155             sub setModTimeTo {
156             my $self = shift;
157             my $sModTimeTo = shift;
158             $self->getRequestDataType()->setModTimeTo($sModTimeTo);
159             }
160              
161             =head2 setNewItemFilter()
162              
163             Specifies that only new items are to be returned. NewItemFilter is an
164             optional input.
165              
166             RequiredInput: No
167             # Argument: 'xs:boolean'
168              
169             =cut
170            
171             sub setNewItemFilter {
172             my $self = shift;
173             my $sNewItemFilter = shift;
174             $self->getRequestDataType()->setNewItemFilter($sNewItemFilter);
175             }
176              
177             =head2 setStartTimeFrom()
178              
179             Describes the earliest (oldest) date to use in a date range filter based
180             on item start time. Must be specified if StartTimeTo is specified. Either
181             the StartTimeFrom, EndTimeFrom, or ModTimeFrom filter must be specified.
182             If you do not specify the correspoding To filter,
183             it is set to the time you make the call.
184             For better results, the time period you use should be less than 48 hours.
185              
186             RequiredInput: Conditionally
187             # Argument: 'xs:dateTime'
188              
189             =cut
190            
191             sub setStartTimeFrom {
192             my $self = shift;
193             my $sStartTimeFrom = shift;
194             $self->getRequestDataType()->setStartTimeFrom($sStartTimeFrom);
195             }
196              
197             =head2 setStartTimeTo()
198              
199             Describes the latest (most recent) date to use in a date range filter
200             based on item start time. If you specify the corresponding From filter,
201             but you do not include StartTimeTo, the StartTimeTo is set to
202             the time you make the call.
203              
204             RequiredInput: No
205             # Argument: 'xs:dateTime'
206              
207             =cut
208            
209             sub setStartTimeTo {
210             my $self = shift;
211             my $sStartTimeTo = shift;
212             $self->getRequestDataType()->setStartTimeTo($sStartTimeTo);
213             }
214              
215             =head2 setUserID()
216              
217             eBay user ID for the seller whose events are to be returned.
218             If not specified, retrieves events for the user identified by
219             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
220             their own listings and bidders who know the user IDs of their sellers
221             will be able to make this API call successfully. See Working with Anonymous User Informationin the eBay Web Services Guide for more information.
222              
223             RequiredInput: No
224             # Argument: 'ns:UserIDType'
225              
226             =cut
227            
228             sub setUserID {
229             my $self = shift;
230             my $pUserID = shift;
231             $self->getRequestDataType()->setUserID($pUserID);
232             }
233              
234              
235              
236             #
237             # output properties
238             #
239              
240             =head2 getItemArray()
241              
242             Collection of Item objects, each of which represents an item listing
243             that incurred the type of seller event change specified in the call's
244             inputs. Returns empty if the seller has no item events within the
245             time window indicated in the request.
246              
247             Returned: Always
248             Details: DetailLevel: none, ReturnAll
249             # Returns: 'ns:ItemArrayType'
250              
251             =cut
252            
253             sub getItemArray {
254             my $self = shift;
255             return $self->getResponseDataType()->getItemArray();
256             }
257              
258             =head2 getTimeTo()
259              
260             Indicates the latest (most recent) date for any date-based filtering specified as
261             input. Specifically, this field contains the value you specified in the StartTimeTo, EndTimeTo, or ModTimeTo filter, if you used a time filter in the request. If no time filter was specified, TimeTo returns the current time.
262              
263             Returned: Always
264             Details: DetailLevel: none, ReturnAll
265             # Returns: 'xs:dateTime'
266              
267             =cut
268            
269             sub getTimeTo {
270             my $self = shift;
271             return $self->getResponseDataType()->getTimeTo();
272             }
273              
274              
275              
276              
277              
278             1;