File Coverage

lib/eBay/API/XML/DataType/BidderDetailType.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::BidderDetailType;
4              
5 1     1   1646 use strict;
  1         2  
  1         30  
6 1     1   6 use warnings;
  1         1  
  1         27  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. BidderDetailType.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::BidderDetailType
21              
22             =head1 DESCRIPTION
23              
24             Contains the data for a user who is interested in bidding on items in a Live Auctions catalog.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::BidderDetailType inherits from the L class
36              
37             =cut
38              
39 1     1   48 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::LiveAuctionBidType;
43             use eBay::API::XML::DataType::UserIDType;
44              
45              
46             my @gaProperties = ( [ 'Email', 'xs:string', '', '', '' ]
47             , [ 'FeedbackScore', 'xs:int', '', '', '' ]
48             , [ 'LiveAuctionBidResult', 'ns:LiveAuctionBidType', ''
49             ,'eBay::API::XML::DataType::LiveAuctionBidType', '1' ]
50             , [ 'UniqueNegativeFeedbackCount', 'xs:int', '', '', '' ]
51             , [ 'UniqueNeutralFeedbackCount', 'xs:int', '', '', '' ]
52             , [ 'UniquePositiveFeedbackCount', 'xs:int', '', '', '' ]
53             , [ 'UserID', 'ns:UserIDType', ''
54             ,'eBay::API::XML::DataType::UserIDType', '1' ]
55             );
56             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
57              
58             my @gaAttributes = (
59             );
60             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
61              
62             =head1 Subroutines:
63              
64             =cut
65              
66             sub new {
67             my $classname = shift;
68             my %args = @_;
69             my $self = $classname->SUPER::new(%args);
70             return $self;
71             }
72              
73             sub isScalar {
74             return 0;
75             }
76              
77              
78              
79             =head2 setEmail()
80              
81             E-mail address of the bidder.
82             You cannot retrieve an email address for any user with whom
83             you do not have a transactional relationship, regardless of
84             site. Email is only returned for applicable calls when you
85             are retrieving your own user data OR when you and the other
86             user are in a transactional relationship and the call is
87             being executed within a certain amount of time after the
88             transaction is created.
89             Returned as CDATA. When an email address can not be returned,
90             the string "Invalid Request" is returned instead.
91              
92             # Argument: 'xs:string'
93              
94             =cut
95              
96             sub setEmail {
97             my $self = shift;
98             $self->{'Email'} = shift
99             }
100              
101             =head2 getEmail()
102              
103             Calls: GetLiveAuctionBidders
104             Returned: Always
105              
106             # Returns: 'xs:string'
107              
108             =cut
109              
110             sub getEmail {
111             my $self = shift;
112             return $self->{'Email'};
113             }
114              
115              
116             =head2 setFeedbackScore()
117              
118             Aggegate feedback score for the specified user.
119             Feedback score is only return if the user has not chosen to make his
120             or her feeback private.
121              
122             # Argument: 'xs:int'
123              
124             =cut
125              
126             sub setFeedbackScore {
127             my $self = shift;
128             $self->{'FeedbackScore'} = shift
129             }
130              
131             =head2 getFeedbackScore()
132              
133             Calls: GetLiveAuctionBidders
134             Returned: Conditionally
135              
136             # Returns: 'xs:int'
137              
138             =cut
139              
140             sub getFeedbackScore {
141             my $self = shift;
142             return $self->{'FeedbackScore'};
143             }
144              
145              
146             =head2 setLiveAuctionBidResult()
147              
148             Contains the bidder details that match the bidder query
149             passed in the request.
150             Always returned when bidder search results are found.
151              
152             # Argument: 'ns:LiveAuctionBidType'
153              
154             =cut
155              
156             sub setLiveAuctionBidResult {
157             my $self = shift;
158             $self->{'LiveAuctionBidResult'} = shift
159             }
160              
161             =head2 getLiveAuctionBidResult()
162              
163             Calls: GetLiveAuctionBidders
164             Returned: Always
165              
166             # Returns: 'ns:LiveAuctionBidType'
167              
168             =cut
169              
170             sub getLiveAuctionBidResult {
171             my $self = shift;
172             return $self->_getDataTypeInstance( 'LiveAuctionBidResult'
173             ,'eBay::API::XML::DataType::LiveAuctionBidType');
174             }
175              
176              
177             =head2 setUniqueNegativeFeedbackCount()
178              
179             Total count of negative Feedback entries received by the user, including weekly repeats.
180              
181             # Argument: 'xs:int'
182              
183             =cut
184              
185             sub setUniqueNegativeFeedbackCount {
186             my $self = shift;
187             $self->{'UniqueNegativeFeedbackCount'} = shift
188             }
189              
190             =head2 getUniqueNegativeFeedbackCount()
191              
192             Calls: GetLiveAuctionBidders
193             Returned: Always
194              
195             # Returns: 'xs:int'
196              
197             =cut
198              
199             sub getUniqueNegativeFeedbackCount {
200             my $self = shift;
201             return $self->{'UniqueNegativeFeedbackCount'};
202             }
203              
204              
205             =head2 setUniqueNeutralFeedbackCount()
206              
207             Total count of neutral Feedback entries received by the user, including weekly repeats.
208              
209             # Argument: 'xs:int'
210              
211             =cut
212              
213             sub setUniqueNeutralFeedbackCount {
214             my $self = shift;
215             $self->{'UniqueNeutralFeedbackCount'} = shift
216             }
217              
218             =head2 getUniqueNeutralFeedbackCount()
219              
220             Calls: GetLiveAuctionBidders
221             Returned: Always
222              
223             # Returns: 'xs:int'
224              
225             =cut
226              
227             sub getUniqueNeutralFeedbackCount {
228             my $self = shift;
229             return $self->{'UniqueNeutralFeedbackCount'};
230             }
231              
232              
233             =head2 setUniquePositiveFeedbackCount()
234              
235             Total count of positive Feedback entries received by the user, including weekly repeats.
236              
237             # Argument: 'xs:int'
238              
239             =cut
240              
241             sub setUniquePositiveFeedbackCount {
242             my $self = shift;
243             $self->{'UniquePositiveFeedbackCount'} = shift
244             }
245              
246             =head2 getUniquePositiveFeedbackCount()
247              
248             Calls: GetLiveAuctionBidders
249             Returned: Always
250              
251             # Returns: 'xs:int'
252              
253             =cut
254              
255             sub getUniquePositiveFeedbackCount {
256             my $self = shift;
257             return $self->{'UniquePositiveFeedbackCount'};
258             }
259              
260              
261             =head2 setUserID()
262              
263             ID of the user requesting approval.
264              
265             # Argument: 'ns:UserIDType'
266              
267             =cut
268              
269             sub setUserID {
270             my $self = shift;
271             $self->{'UserID'} = shift
272             }
273              
274             =head2 getUserID()
275              
276             Calls: GetLiveAuctionBidders
277             Returned: Always
278              
279             # Returns: 'ns:UserIDType'
280              
281             =cut
282              
283             sub getUserID {
284             my $self = shift;
285             return $self->_getDataTypeInstance( 'UserID'
286             ,'eBay::API::XML::DataType::UserIDType');
287             }
288              
289              
290              
291              
292              
293             ## Attribute and Property lists
294             sub getPropertiesList {
295             my $self = shift;
296             return \@gaProperties;
297             }
298              
299             sub getAttributesList {
300             my $self = shift;
301             return \@gaAttributes;
302             }
303              
304              
305              
306             1;