File Coverage

lib/eBay/API/XML/DataType/ItemListCustomizationType.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::DataType::ItemListCustomizationType;
4              
5 1     1   2027 use strict;
  1         3  
  1         36  
6 1     1   5 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ItemListCustomizationType.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::DataType::ItemListCustomizationType
21              
22             =head1 DESCRIPTION
23              
24             Defines how a list of items should be returned.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ItemListCustomizationType inherits from the L class
36              
37             =cut
38              
39 1     1   44 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::PaginationType;
43             use eBay::API::XML::DataType::Enum::ItemSortTypeCodeType;
44             use eBay::API::XML::DataType::Enum::ListingTypeCodeType;
45              
46              
47             my @gaProperties = ( [ 'DurationInDays', 'xs:int', '', '', '' ]
48             , [ 'Include', 'xs:boolean', '', '', '' ]
49             , [ 'IncludeNotes', 'xs:boolean', '', '', '' ]
50             , [ 'ListingType', 'ns:ListingTypeCodeType', ''
51             ,'eBay::API::XML::DataType::Enum::ListingTypeCodeType', '' ]
52             , [ 'Pagination', 'ns:PaginationType', ''
53             ,'eBay::API::XML::DataType::PaginationType', '1' ]
54             , [ 'Sort', 'ns:ItemSortTypeCodeType', ''
55             ,'eBay::API::XML::DataType::Enum::ItemSortTypeCodeType', '' ]
56             );
57             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
58              
59             my @gaAttributes = (
60             );
61             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
62              
63             =head1 Subroutines:
64              
65             =cut
66              
67             sub new {
68             my $classname = shift;
69             my %args = @_;
70             my $self = $classname->SUPER::new(%args);
71             return $self;
72             }
73              
74             sub isScalar {
75             return 0;
76             }
77              
78              
79              
80             =head2 setDurationInDays()
81              
82             Specifies the time period during which an item was
83             won or lost. Similar to the period drop-down menu
84             in the My eBay user interface. Valid for WonList,
85             DeletedFromWonList, LostList, DeletedFromLostList, SoldList,
86             DeletedFromSoldList, UnsoldList, DeletedFromUnsoldList,
87             BestOfferList, BuyingReminders, and SellingReminders.
88              
89             Max: 60
90             Min: 0
91              
92             Calls: GetMyeBayBuying
93             RequiredInput: No
94             Context: BestOfferList
95             LostList
96             DeletedFromLostList
97             WonList
98             DeletedFromWonList
99              
100             Calls: GetMyeBaySelling
101             RequiredInput: No
102             Context: SoldList
103             DeletedFromSoldList
104             DeletedFromUnsoldList
105             UnsoldList
106              
107             # Argument: 'xs:int'
108              
109             =cut
110              
111             sub setDurationInDays {
112             my $self = shift;
113             $self->{'DurationInDays'} = shift
114             }
115              
116             =head2 getDurationInDays()
117              
118             # Returns: 'xs:int'
119              
120             =cut
121              
122             sub getDurationInDays {
123             my $self = shift;
124             return $self->{'DurationInDays'};
125             }
126              
127              
128             =head2 setInclude()
129              
130             Returns the list using the default settings.
131              
132             Calls: GetMyeBayBuying
133             RequiredInput: No
134             Context: BestOfferList
135              
136             # Argument: 'xs:boolean'
137              
138             =cut
139              
140             sub setInclude {
141             my $self = shift;
142             $self->{'Include'} = shift
143             }
144              
145             =head2 isInclude()
146              
147             # Returns: 'xs:boolean'
148              
149             =cut
150              
151             sub isInclude {
152             my $self = shift;
153             return $self->{'Include'};
154             }
155              
156              
157             =head2 setIncludeNotes()
158              
159             Specifies whether to include Item.PrivateNotes and Item.eBayNotes
160             in the response. Valid for WatchList, BidList, WonList, DeletedFromWonList,
161             LostList, DeletedFromLostList, ScheduledList, ActiveList, SoldList,
162             and UnsoldList.
163              
164             Calls: GetMyeBayBuying
165             RequiredInput: No
166             Context: BestOfferList
167             BidList
168             LostList
169             WatchList
170             WonList
171             DeletedFromWonList
172             DeletedFromLostList
173              
174             Calls: GetMyeBaySelling
175             RequiredInput: No
176             Context: BidList
177             SoldList
178             UnsoldList
179             DeletedFromSoldList
180             DeletedFromUnsoldList
181             ScheduledList
182             ActiveList
183              
184             # Argument: 'xs:boolean'
185              
186             =cut
187              
188             sub setIncludeNotes {
189             my $self = shift;
190             $self->{'IncludeNotes'} = shift
191             }
192              
193             =head2 isIncludeNotes()
194              
195             # Returns: 'xs:boolean'
196              
197             =cut
198              
199             sub isIncludeNotes {
200             my $self = shift;
201             return $self->{'IncludeNotes'};
202             }
203              
204              
205             =head2 setListingType()
206              
207             Specifies the listing type of items in the returned list.
208             In GetMyeBaySelling, valid only for ActiveList.
209              
210             Calls: GetMyeBayBuying
211             RequiredInput: No
212             OnlyTheseValues: Auction, FixedPriceItem, StoresFixedPrice,
213             AdType
214             Context: BestOfferList
215              
216             Calls: GetMyeBaySelling
217             RequiredInput: No
218             OnlyTheseValues: Auction, FixedPriceItem, StoresFixedPrice,
219             AdType
220             Context: ActiveList
221              
222             # Argument: 'ns:ListingTypeCodeType'
223              
224             =cut
225              
226             sub setListingType {
227             my $self = shift;
228             $self->{'ListingType'} = shift
229             }
230              
231             =head2 getListingType()
232              
233             # Returns: 'ns:ListingTypeCodeType'
234              
235             =cut
236              
237             sub getListingType {
238             my $self = shift;
239             return $self->{'ListingType'};
240             }
241              
242              
243             =head2 setPagination()
244              
245             Specifies how to create virtual pages in the returned list.
246             Valid for BidList, WonList, LostList, ScheduledList, ActiveList,
247             SoldList, DeleteFromSoldList, UnsoldList, DeleteFromUnsoldList, and
248             GetItemsAwaitingFeedback. Default for EntriesPerPage with GetMyeBayBuying is 200.
249              
250             Calls: GetMyeBaySelling
251             RequiredInput: No
252             Context: BidList
253             ActiveList
254             ScheduledList
255             SoldList
256             UnsoldList
257             DeleteFromSoldList
258             DeleteFromUnsoldList
259              
260             Calls: GetMyeBayBuying
261             RequiredInput: No
262             Context: BestOfferList
263             BidList
264             LostList
265             DeletedFromLostList
266             WonList
267             DeletedFromWonList
268              
269             # Argument: 'ns:PaginationType'
270              
271             =cut
272              
273             sub setPagination {
274             my $self = shift;
275             $self->{'Pagination'} = shift
276             }
277              
278             =head2 getPagination()
279              
280             # Returns: 'ns:PaginationType'
281              
282             =cut
283              
284             sub getPagination {
285             my $self = shift;
286             return $self->_getDataTypeInstance( 'Pagination'
287             ,'eBay::API::XML::DataType::PaginationType');
288             }
289              
290              
291             =head2 setSort()
292              
293             Specifies how the items returned should be sorted.
294             Valid for BestOfferList, BidList, LostList, DeleteFromLostList,
295             WatchList, WonList, and DeleteFromWonList for GetMyeBayBuying.
296             Valid for BidList, ScheduledList, ActiveList, SoldList, DeletedFromSoldList,
297             UnsoldList, and DeletedFromUnsoldList for GetMyeBaySelling. Also
298             valid for GetItemsAwaitingFeedback.
299              
300             Calls: GetMyeBayBuying
301             RequiredInput: No
302             Context: BestOfferList
303             BidList
304             DeletedFromLostList
305             DeletedFromWonList
306             LostList
307             WatchList
308             WonList
309              
310             Calls: GetMyeBaySelling
311             RequiredInput: No
312             Context: BidList
313             ScheduledList
314             ActiveList
315             SoldList
316             DeletedFromSoldList
317             UnsoldList
318             DeletedFromUnsoldList
319              
320             Calls: GetItemsAwaitingFeedback
321             RequiredInput: No
322              
323             # Argument: 'ns:ItemSortTypeCodeType'
324              
325             =cut
326              
327             sub setSort {
328             my $self = shift;
329             $self->{'Sort'} = shift
330             }
331              
332             =head2 getSort()
333              
334             # Returns: 'ns:ItemSortTypeCodeType'
335              
336             =cut
337              
338             sub getSort {
339             my $self = shift;
340             return $self->{'Sort'};
341             }
342              
343              
344              
345              
346              
347             ## Attribute and Property lists
348             sub getPropertiesList {
349             my $self = shift;
350             return \@gaProperties;
351             }
352              
353             sub getAttributesList {
354             my $self = shift;
355             return \@gaAttributes;
356             }
357              
358              
359              
360             1;