File Coverage

lib/eBay/API/XML/Call/GetBidderList/GetBidderListRequestType.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::GetBidderList::GetBidderListRequestType;
4              
5 1     1   1392 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetBidderListRequestType.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::GetBidderList::GetBidderListRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves all items the user is currently bidding on, or
25             has won or purchased. You can control the result set with elements
26             such as ActiveItemsOnly, which limits the result set to active items.
27             Note that since bidder information is anonymous to everyone except the
28             bidder and the seller (during an active auction), only sellers who know
29             the user IDs of their bidders will be able to make this API call successfully.
30             See Working with Anonymous User Information in the eBay Web Services Guide for more information.
31              
32              
33              
34             =head1 SYNOPSIS
35              
36             =cut
37              
38              
39             =head1 INHERITANCE
40              
41             eBay::API::XML::Call::GetBidderList::GetBidderListRequestType inherits from the L class
42              
43             =cut
44              
45 1     1   32 use eBay::API::XML::RequestDataType;
  0            
  0            
46             our @ISA = ("eBay::API::XML::RequestDataType");
47              
48             use eBay::API::XML::DataType::UserIDType;
49             use eBay::API::XML::DataType::Enum::GranularityLevelCodeType;
50              
51              
52             my @gaProperties = ( [ 'ActiveItemsOnly', 'xs:boolean', '', '', '' ]
53             , [ 'EndTimeFrom', 'xs:dateTime', '', '', '' ]
54             , [ 'EndTimeTo', 'xs:dateTime', '', '', '' ]
55             , [ 'GranularityLevel', 'ns:GranularityLevelCodeType', ''
56             ,'eBay::API::XML::DataType::Enum::GranularityLevelCodeType', '' ]
57             , [ 'UserID', 'ns:UserIDType', ''
58             ,'eBay::API::XML::DataType::UserIDType', '1' ]
59             );
60             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
61              
62             my @gaAttributes = (
63             );
64             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
65              
66             =head1 Subroutines:
67              
68             =cut
69              
70             sub new {
71             my $classname = shift;
72             my %args = @_;
73             my $self = $classname->SUPER::new(%args);
74             return $self;
75             }
76              
77             sub isScalar {
78             return 0;
79             }
80              
81              
82              
83             =head2 setActiveItemsOnly()
84              
85             Indicates whether to limit the result set to active items.
86             If true, only active items are returned and the EndTimeFrom
87             and EndTimeTo filters are ignored. If false (or not sent),
88             active and ended items are returned.
89              
90             RequiredInput: No
91             # Argument: 'xs:boolean'
92              
93             =cut
94              
95             sub setActiveItemsOnly {
96             my $self = shift;
97             $self->{'ActiveItemsOnly'} = shift
98             }
99              
100             =head2 isActiveItemsOnly()
101              
102             # Returns: 'xs:boolean'
103              
104             =cut
105              
106             sub isActiveItemsOnly {
107             my $self = shift;
108             return $self->{'ActiveItemsOnly'};
109             }
110              
111              
112             =head2 setEndTimeFrom()
113              
114             Limits returned items to only those for which the item's
115             end date is on or after the date-time specified. Specify an
116             end date within 30 days prior to today. Items that ended
117             more than 30 days ago are omitted from the results. If
118             specified, EndTimeTo must also be specified. Express
119             date-time in the format YYYY-MM-DD HH:MM:SS, and in GMT.
120             (For information on how to convert between your local time zone
121             and GMT, see Time Values Note.) This field is ignored if ActiveItemsOnly is true.
122              
123             RequiredInput: Conditionally
124             # Argument: 'xs:dateTime'
125              
126             =cut
127              
128             sub setEndTimeFrom {
129             my $self = shift;
130             $self->{'EndTimeFrom'} = shift
131             }
132              
133             =head2 getEndTimeFrom()
134              
135             # Returns: 'xs:dateTime'
136              
137             =cut
138              
139             sub getEndTimeFrom {
140             my $self = shift;
141             return $self->{'EndTimeFrom'};
142             }
143              
144              
145             =head2 setEndTimeTo()
146              
147             Limits returned items to only those for which the item's
148             end date is on or before the date-time specified. If
149             specified, EndTimeFrom must also be specified. Express
150             date-time in the format YYYY-MM-DD HH:MM:SS, and in GMT.
151             This field is ignored if ActiveItemsOnly is true.
152              
153             RequiredInput: Conditionally
154             # Argument: 'xs:dateTime'
155              
156             =cut
157              
158             sub setEndTimeTo {
159             my $self = shift;
160             $self->{'EndTimeTo'} = shift
161             }
162              
163             =head2 getEndTimeTo()
164              
165             # Returns: 'xs:dateTime'
166              
167             =cut
168              
169             sub getEndTimeTo {
170             my $self = shift;
171             return $self->{'EndTimeTo'};
172             }
173              
174              
175             =head2 setGranularityLevel()
176              
177             For GetBidderList, you can reduce the ItemType fields and other fields returned
178             by specifying one of two values in the GranularityLevel field, Coarse or Medium.
179             If you specify Coarse, the primary fields returned are the following: Item.ItemID and Item.ListingDetails.EndTime. If you specify Medium, an abbreviated result set is returned
180             that includes many more fields than in the case of Coarse, including the following:
181             Item.BuyItNowPrice, Item.Currency, Item.Site, and Item.Title.
182              
183             PresentDetails: Yes
184              
185             RequiredInput: No
186             # Argument: 'ns:GranularityLevelCodeType'
187              
188             =cut
189              
190             sub setGranularityLevel {
191             my $self = shift;
192             $self->{'GranularityLevel'} = shift
193             }
194              
195             =head2 getGranularityLevel()
196              
197             # Returns: 'ns:GranularityLevelCodeType'
198              
199             =cut
200              
201             sub getGranularityLevel {
202             my $self = shift;
203             return $self->{'GranularityLevel'};
204             }
205              
206              
207             =head2 setUserID()
208              
209             The user for whom information should be returned. If
210             provided, overrides user defined via RequesterCredentials
211             in header.
212              
213             RequiredInput: No
214             # Argument: 'ns:UserIDType'
215              
216             =cut
217              
218             sub setUserID {
219             my $self = shift;
220             $self->{'UserID'} = shift
221             }
222              
223             =head2 getUserID()
224              
225             # Returns: 'ns:UserIDType'
226              
227             =cut
228              
229             sub getUserID {
230             my $self = shift;
231             return $self->_getDataTypeInstance( 'UserID'
232             ,'eBay::API::XML::DataType::UserIDType');
233             }
234              
235              
236              
237              
238              
239             ## Attribute and Property lists
240             sub getPropertiesList {
241             my $self = shift;
242             return \@gaProperties;
243             }
244              
245             sub getAttributesList {
246             my $self = shift;
247             return \@gaAttributes;
248             }
249              
250              
251              
252             1;