File Coverage

lib/eBay/API/XML/Call/GetMyeBayBuying/GetMyeBayBuyingRequestType.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::GetMyeBayBuying::GetMyeBayBuyingRequestType;
4              
5 1     1   1527 use strict;
  1         2  
  1         26  
6 1     1   5 use warnings;
  1         1  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetMyeBayBuyingRequestType.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::GetMyeBayBuying::GetMyeBayBuyingRequestType
21              
22             =head1 DESCRIPTION
23              
24             Returns items from the All Buying section of the user's My eBay
25             account, including items the user is watching, bidding on, has
26             won, has not won, or has made best offers on.
27            

28             A DetailLevel of ReturnSummary returns only the BuyingSummary
29             and the specific container(s) requested (by adding an Include value
30             of true for each container you want to include in the response).
31            

32             A DetailLevel of ReturnAll returns the BuyingSummary and all
33             other containers that do not contain the Include tag. Any containers
34             that have an Include value specified will not be returned with the
35             response.
36              
37              
38              
39             =head1 SYNOPSIS
40              
41             =cut
42              
43              
44             =head1 INHERITANCE
45              
46             eBay::API::XML::Call::GetMyeBayBuying::GetMyeBayBuyingRequestType inherits from the L class
47              
48             =cut
49              
50 1     1   34 use eBay::API::XML::RequestDataType;
  0            
  0            
51             our @ISA = ("eBay::API::XML::RequestDataType");
52              
53             use eBay::API::XML::DataType::BidAssistantListType;
54             use eBay::API::XML::DataType::ItemListCustomizationType;
55             use eBay::API::XML::DataType::MyeBaySelectionType;
56              
57              
58             my @gaProperties = ( [ 'BestOfferList', 'ns:ItemListCustomizationType', ''
59             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
60             , [ 'BidAssistantList', 'ns:BidAssistantListType', ''
61             ,'eBay::API::XML::DataType::BidAssistantListType', '1' ]
62             , [ 'BidList', 'ns:ItemListCustomizationType', ''
63             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
64             , [ 'DeletedFromLostList', 'ns:ItemListCustomizationType', ''
65             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
66             , [ 'DeletedFromWonList', 'ns:ItemListCustomizationType', ''
67             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
68             , [ 'FavoriteSearches', 'ns:MyeBaySelectionType', ''
69             ,'eBay::API::XML::DataType::MyeBaySelectionType', '1' ]
70             , [ 'FavoriteSellers', 'ns:MyeBaySelectionType', ''
71             ,'eBay::API::XML::DataType::MyeBaySelectionType', '1' ]
72             , [ 'LostList', 'ns:ItemListCustomizationType', ''
73             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
74             , [ 'SecondChanceOffer', 'ns:MyeBaySelectionType', ''
75             ,'eBay::API::XML::DataType::MyeBaySelectionType', '1' ]
76             , [ 'WatchList', 'ns:ItemListCustomizationType', ''
77             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
78             , [ 'WonList', 'ns:ItemListCustomizationType', ''
79             ,'eBay::API::XML::DataType::ItemListCustomizationType', '1' ]
80             );
81             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
82              
83             my @gaAttributes = (
84             );
85             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
86              
87             =head1 Subroutines:
88              
89             =cut
90              
91             sub new {
92             my $classname = shift;
93             my %args = @_;
94             my $self = $classname->SUPER::new(%args);
95             return $self;
96             }
97              
98             sub isScalar {
99             return 0;
100             }
101              
102              
103              
104             =head2 setBestOfferList()
105              
106             Specifies how to return the list of items on which the user has placed
107             best offers. Allowed values are Include, ListingType, Sort, DurationInDays
108             (0-60 valid), IncludeNotes, and Pagination. Include in the request to
109             return this container at a DetailLevel of ReturnSummary.
110              
111             RequiredInput: No
112             # Argument: 'ns:ItemListCustomizationType'
113              
114             =cut
115              
116             sub setBestOfferList {
117             my $self = shift;
118             $self->{'BestOfferList'} = shift
119             }
120              
121             =head2 getBestOfferList()
122              
123             # Returns: 'ns:ItemListCustomizationType'
124              
125             =cut
126              
127             sub getBestOfferList {
128             my $self = shift;
129             return $self->_getDataTypeInstance( 'BestOfferList'
130             ,'eBay::API::XML::DataType::ItemListCustomizationType');
131             }
132              
133              
134             =head2 setBidAssistantList()
135              
136             This is an optional element, used to indicate whether the Bid Assistant feature is being used.
137              
138             RequiredInput: No
139             # Argument: 'ns:BidAssistantListType'
140              
141             =cut
142              
143             sub setBidAssistantList {
144             my $self = shift;
145             $self->{'BidAssistantList'} = shift
146             }
147              
148             =head2 getBidAssistantList()
149              
150             # Returns: 'ns:BidAssistantListType'
151              
152             =cut
153              
154             sub getBidAssistantList {
155             my $self = shift;
156             return $self->_getDataTypeInstance( 'BidAssistantList'
157             ,'eBay::API::XML::DataType::BidAssistantListType');
158             }
159              
160              
161             =head2 setBidList()
162              
163             Specifies how to return the list of items bid on in the buyer's My eBay
164             Bidding list. Allowed values are Sort and IncludeNotes.Include in the request to
165             return this container at a DetailLevel of ReturnSummary.
166              
167             RequiredInput: No
168             # Argument: 'ns:ItemListCustomizationType'
169              
170             =cut
171              
172             sub setBidList {
173             my $self = shift;
174             $self->{'BidList'} = shift
175             }
176              
177             =head2 getBidList()
178              
179             # Returns: 'ns:ItemListCustomizationType'
180              
181             =cut
182              
183             sub getBidList {
184             my $self = shift;
185             return $self->_getDataTypeInstance( 'BidList'
186             ,'eBay::API::XML::DataType::ItemListCustomizationType');
187             }
188              
189              
190             =head2 setDeletedFromLostList()
191              
192             Specifies how to return the list of items lost and deleted from the buyer's My
193             eBay list. Allowed values are DurationInDays (0-60), IncludeNotes, Sort,
194             and Pagination. Include in the request to return this container
195             at a DetailLevel of ReturnSummary.
196              
197             RequiredInput: No
198             # Argument: 'ns:ItemListCustomizationType'
199              
200             =cut
201              
202             sub setDeletedFromLostList {
203             my $self = shift;
204             $self->{'DeletedFromLostList'} = shift
205             }
206              
207             =head2 getDeletedFromLostList()
208              
209             # Returns: 'ns:ItemListCustomizationType'
210              
211             =cut
212              
213             sub getDeletedFromLostList {
214             my $self = shift;
215             return $self->_getDataTypeInstance( 'DeletedFromLostList'
216             ,'eBay::API::XML::DataType::ItemListCustomizationType');
217             }
218              
219              
220             =head2 setDeletedFromWonList()
221              
222             Specifies how to return the list of items won and deleted from the buyer's My
223             eBay list. Allowed values are DurationInDays (0-60), IncludeNotes, Sort,
224             and Pagination. Include in the request to return this container at
225             a DetailLevel of ReturnSummary.
226              
227             RequiredInput: No
228             # Argument: 'ns:ItemListCustomizationType'
229              
230             =cut
231              
232             sub setDeletedFromWonList {
233             my $self = shift;
234             $self->{'DeletedFromWonList'} = shift
235             }
236              
237             =head2 getDeletedFromWonList()
238              
239             # Returns: 'ns:ItemListCustomizationType'
240              
241             =cut
242              
243             sub getDeletedFromWonList {
244             my $self = shift;
245             return $self->_getDataTypeInstance( 'DeletedFromWonList'
246             ,'eBay::API::XML::DataType::ItemListCustomizationType');
247             }
248              
249              
250             =head2 setFavoriteSearches()
251              
252             Specifies how to return the list of favorite searches in the user's My
253             eBay list. Only returned if the user has Favorite Searches. All detail levels return the search name, search query, and search elements, such
254             as QueryKeywords, SortOrder, and Condition. Do not use an Include tag
255             if you are using a detail level of ReturnAll.
256              
257             RequiredInput: No
258             # Argument: 'ns:MyeBaySelectionType'
259              
260             =cut
261              
262             sub setFavoriteSearches {
263             my $self = shift;
264             $self->{'FavoriteSearches'} = shift
265             }
266              
267             =head2 getFavoriteSearches()
268              
269             # Returns: 'ns:MyeBaySelectionType'
270              
271             =cut
272              
273             sub getFavoriteSearches {
274             my $self = shift;
275             return $self->_getDataTypeInstance( 'FavoriteSearches'
276             ,'eBay::API::XML::DataType::MyeBaySelectionType');
277             }
278              
279              
280             =head2 setFavoriteSellers()
281              
282             Specifies how to return the list of favorite sellers in the user's My eBay
283             list. All values are allowed. Include in the request to return this
284             container at a DetailLevel of ReturnSummary.
285              
286             RequiredInput: No
287             # Argument: 'ns:MyeBaySelectionType'
288              
289             =cut
290              
291             sub setFavoriteSellers {
292             my $self = shift;
293             $self->{'FavoriteSellers'} = shift
294             }
295              
296             =head2 getFavoriteSellers()
297              
298             # Returns: 'ns:MyeBaySelectionType'
299              
300             =cut
301              
302             sub getFavoriteSellers {
303             my $self = shift;
304             return $self->_getDataTypeInstance( 'FavoriteSellers'
305             ,'eBay::API::XML::DataType::MyeBaySelectionType');
306             }
307              
308              
309             =head2 setLostList()
310              
311             Specifies how to return the list of items bid on and lost in the user's My
312             eBay list. Allowed values are DurationInDays (valid values 0-60), Sort,
313             IncludeNotes, and Pagination. Include in the request to return this
314             container at a DetailLevel of ReturnSummary.
315              
316             RequiredInput: No
317             # Argument: 'ns:ItemListCustomizationType'
318              
319             =cut
320              
321             sub setLostList {
322             my $self = shift;
323             $self->{'LostList'} = shift
324             }
325              
326             =head2 getLostList()
327              
328             # Returns: 'ns:ItemListCustomizationType'
329              
330             =cut
331              
332             sub getLostList {
333             my $self = shift;
334             return $self->_getDataTypeInstance( 'LostList'
335             ,'eBay::API::XML::DataType::ItemListCustomizationType');
336             }
337              
338              
339             =head2 setSecondChanceOffer()
340              
341             Specifies how to return the list of second chance offers in the user's My
342             eBay list. All values are allowed. Include in the request to return this
343             container at a DetailLevel of ReturnSummary.
344              
345             RequiredInput: No
346             # Argument: 'ns:MyeBaySelectionType'
347              
348             =cut
349              
350             sub setSecondChanceOffer {
351             my $self = shift;
352             $self->{'SecondChanceOffer'} = shift
353             }
354              
355             =head2 getSecondChanceOffer()
356              
357             # Returns: 'ns:MyeBaySelectionType'
358              
359             =cut
360              
361             sub getSecondChanceOffer {
362             my $self = shift;
363             return $self->_getDataTypeInstance( 'SecondChanceOffer'
364             ,'eBay::API::XML::DataType::MyeBaySelectionType');
365             }
366              
367              
368             =head2 setWatchList()
369              
370             Specifies how to return the list of watched items in the user's My eBay
371             list. Include in the request to return this container at a DetailLevel of
372             ReturnSummary.
373              
374             RequiredInput: No
375             # Argument: 'ns:ItemListCustomizationType'
376              
377             =cut
378              
379             sub setWatchList {
380             my $self = shift;
381             $self->{'WatchList'} = shift
382             }
383              
384             =head2 getWatchList()
385              
386             # Returns: 'ns:ItemListCustomizationType'
387              
388             =cut
389              
390             sub getWatchList {
391             my $self = shift;
392             return $self->_getDataTypeInstance( 'WatchList'
393             ,'eBay::API::XML::DataType::ItemListCustomizationType');
394             }
395              
396              
397             =head2 setWonList()
398              
399             Specifies how to return the list of items bid on and won in the user's My
400             eBay list. Allowed values are DurationInDays (valid values 0-60), Sort,
401             IncludeNotes, and Pagination. Include in the request to return this
402             container at a DetailLevel of ReturnSummary.
403              
404             RequiredInput: No
405             # Argument: 'ns:ItemListCustomizationType'
406              
407             =cut
408              
409             sub setWonList {
410             my $self = shift;
411             $self->{'WonList'} = shift
412             }
413              
414             =head2 getWonList()
415              
416             # Returns: 'ns:ItemListCustomizationType'
417              
418             =cut
419              
420             sub getWonList {
421             my $self = shift;
422             return $self->_getDataTypeInstance( 'WonList'
423             ,'eBay::API::XML::DataType::ItemListCustomizationType');
424             }
425              
426              
427              
428              
429              
430             ## Attribute and Property lists
431             sub getPropertiesList {
432             my $self = shift;
433             return \@gaProperties;
434             }
435              
436             sub getAttributesList {
437             my $self = shift;
438             return \@gaAttributes;
439             }
440              
441              
442              
443             1;