File Coverage

lib/eBay/API/XML/DataType/FeedbackDetailType.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::FeedbackDetailType;
4              
5 1     1   1508 use strict;
  1         3  
  1         34  
6 1     1   5 use warnings;
  1         2  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. FeedbackDetailType.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::FeedbackDetailType
21              
22             =head1 DESCRIPTION
23              
24             Detailed feedback information for a user. Conveys the score for the
25             feedback, the textual comment, and other information.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::FeedbackDetailType inherits from the L class
37              
38             =cut
39              
40 1     1   38 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::AmountType;
44             use eBay::API::XML::DataType::ItemIDType;
45             use eBay::API::XML::DataType::UserIDType;
46             use eBay::API::XML::DataType::Enum::CommentTypeCodeType;
47             use eBay::API::XML::DataType::Enum::TradingRoleCodeType;
48              
49              
50             my @gaProperties = ( [ 'CommentReplaced', 'xs:boolean', '', '', '' ]
51             , [ 'CommentText', 'xs:string', '', '', '' ]
52             , [ 'CommentTime', 'xs:dateTime', '', '', '' ]
53             , [ 'CommentType', 'ns:CommentTypeCodeType', ''
54             ,'eBay::API::XML::DataType::Enum::CommentTypeCodeType', '' ]
55             , [ 'CommentingUser', 'ns:UserIDType', ''
56             ,'eBay::API::XML::DataType::UserIDType', '1' ]
57             , [ 'CommentingUserScore', 'xs:int', '', '', '' ]
58             , [ 'Countable', 'xs:boolean', '', '', '' ]
59             , [ 'FeedbackID', 'xs:string', '', '', '' ]
60             , [ 'FeedbackResponse', 'xs:string', '', '', '' ]
61             , [ 'FollowUpReplaced', 'xs:boolean', '', '', '' ]
62             , [ 'Followup', 'xs:string', '', '', '' ]
63             , [ 'ItemID', 'ns:ItemIDType', ''
64             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
65             , [ 'ItemPrice', 'ns:AmountType', ''
66             ,'eBay::API::XML::DataType::AmountType', '1' ]
67             , [ 'ItemTitle', 'xs:string', '', '', '' ]
68             , [ 'ResponseReplaced', 'xs:boolean', '', '', '' ]
69             , [ 'Role', 'ns:TradingRoleCodeType', ''
70             ,'eBay::API::XML::DataType::Enum::TradingRoleCodeType', '' ]
71             , [ 'TransactionID', 'xs:string', '', '', '' ]
72             );
73             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
74              
75             my @gaAttributes = (
76             );
77             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
78              
79             =head1 Subroutines:
80              
81             =cut
82              
83             sub new {
84             my $classname = shift;
85             my %args = @_;
86             my $self = $classname->SUPER::new(%args);
87             return $self;
88             }
89              
90             sub isScalar {
91             return 0;
92             }
93              
94              
95              
96             =head2 setCommentReplaced()
97              
98             Indicates whether eBay replaced the comment with a message
99             that the comment was removed.
100              
101             # Argument: 'xs:boolean'
102              
103             =cut
104              
105             sub setCommentReplaced {
106             my $self = shift;
107             $self->{'CommentReplaced'} = shift
108             }
109              
110             =head2 isCommentReplaced()
111              
112             Calls: GetFeedback
113             Returned: Conditionally
114             Details: DetailLevel: ReturnAll
115              
116             # Returns: 'xs:boolean'
117              
118             =cut
119              
120             sub isCommentReplaced {
121             my $self = shift;
122             return $self->{'CommentReplaced'};
123             }
124              
125              
126             =head2 setCommentText()
127              
128             Text message left by user specified in CommentingUser. Used to provide a more
129             in-depth description of the user's opinion of their transaction with the user
130             about whom they left feedback. Returned as text in the language that the
131             comment was originally left in.
132             Returned for a detail level of ReturnAll (if the parent is returned).
133              
134             MaxLength: 80 (125 for Taiwan)
135              
136             # Argument: 'xs:string'
137              
138             =cut
139              
140             sub setCommentText {
141             my $self = shift;
142             $self->{'CommentText'} = shift
143             }
144              
145             =head2 getCommentText()
146              
147             Calls: GetFeedback
148             Returned: Conditionally
149             Details: DetailLevel: ReturnAll
150              
151             # Returns: 'xs:string'
152              
153             =cut
154              
155             sub getCommentText {
156             my $self = shift;
157             return $self->{'CommentText'};
158             }
159              
160              
161             =head2 setCommentTime()
162              
163             Date and time (in GMT) that the feedback was submitted to eBay.
164             Returned for a detail level of ReturnAll (if the parent is returned).
165              
166             # Argument: 'xs:dateTime'
167              
168             =cut
169              
170             sub setCommentTime {
171             my $self = shift;
172             $self->{'CommentTime'} = shift
173             }
174              
175             =head2 getCommentTime()
176              
177             Calls: GetFeedback
178             Returned: Conditionally
179             Details: DetailLevel: ReturnAll
180              
181             # Returns: 'xs:dateTime'
182              
183             =cut
184              
185             sub getCommentTime {
186             my $self = shift;
187             return $self->{'CommentTime'};
188             }
189              
190              
191             =head2 setCommentType()
192              
193             Type of feedback. Can be Positive, Neutral, Negative, or Withdrawn (see the
194             CommentTypeCodeType code list). Positive feedbacks add to the user's total
195             feedback score, negative feedbacks lower the score, and neutral feedbacks do
196             not affect the score (but do affect the overall picture of the user's online
197             reputation).
198             Returned for a detail level of ReturnAll (if the parent is returned).
199              
200             # Argument: 'ns:CommentTypeCodeType'
201              
202             =cut
203              
204             sub setCommentType {
205             my $self = shift;
206             $self->{'CommentType'} = shift
207             }
208              
209             =head2 getCommentType()
210              
211             Calls: GetFeedback
212             Returned: Conditionally
213             Details: DetailLevel: ReturnAll
214              
215             # Returns: 'ns:CommentTypeCodeType'
216              
217             =cut
218              
219             sub getCommentType {
220             my $self = shift;
221             return $self->{'CommentType'};
222             }
223              
224              
225             =head2 setCommentingUser()
226              
227             eBay user ID for the user who left the feedback.
228             Returned for a detail level of ReturnAll (if the parent is returned).
229              
230             # Argument: 'ns:UserIDType'
231              
232             =cut
233              
234             sub setCommentingUser {
235             my $self = shift;
236             $self->{'CommentingUser'} = shift
237             }
238              
239             =head2 getCommentingUser()
240              
241             Calls: GetFeedback
242             Returned: Conditionally
243             Details: DetailLevel: ReturnAll
244              
245             # Returns: 'ns:UserIDType'
246              
247             =cut
248              
249             sub getCommentingUser {
250             my $self = shift;
251             return $self->_getDataTypeInstance( 'CommentingUser'
252             ,'eBay::API::XML::DataType::UserIDType');
253             }
254              
255              
256             =head2 setCommentingUserScore()
257              
258             Feedback score of the user indicated in CommentingUser.
259             Returned for a detail level of ReturnAll (if the parent is returned).
260              
261             # Argument: 'xs:int'
262              
263             =cut
264              
265             sub setCommentingUserScore {
266             my $self = shift;
267             $self->{'CommentingUserScore'} = shift
268             }
269              
270             =head2 getCommentingUserScore()
271              
272             Calls: GetFeedback
273             Returned: Conditionally
274             Details: DetailLevel: ReturnAll
275              
276             # Returns: 'xs:int'
277              
278             =cut
279              
280             sub getCommentingUserScore {
281             my $self = shift;
282             return $self->{'CommentingUserScore'};
283             }
284              
285              
286             =head2 setCountable()
287              
288             Specifies if a user's feedback score is or is not countable. This field is
289             returned only when a user's feedback score is not countable (value is false).
290            

291             Only feedback left by verified users can count toward the aggregate score of
292             another user. If a user is not verified and leaves a feedback, then later becomes verified,
293             that feedback will still not be counted. Or, if a user is verified and at some
294             later date changes to unverified status, the feedback left while the user was
295             verified remains countable. So you cannot determine a user's current
296             verification status from whether or not feedback they've left is or was
297             countable. Whether or not feedback is countable has nothing to do with the
298             verification status of the one receiving the comment, only the one leaving
299             the feedback.
300              
301             SeeLink: URL: io_GetUser.html#Response.User.SiteVerfied
302             Title: (GetUser) ItemDetails
303             Default: true
304              
305             # Argument: 'xs:boolean'
306              
307             =cut
308              
309             sub setCountable {
310             my $self = shift;
311             $self->{'Countable'} = shift
312             }
313              
314             =head2 isCountable()
315              
316             Calls: GetFeedback
317             Returned: Conditionally
318             Details: DetailLevel: ReturnAll
319              
320             # Returns: 'xs:boolean'
321              
322             =cut
323              
324             sub isCountable {
325             my $self = shift;
326             return $self->{'Countable'};
327             }
328              
329              
330             =head2 setFeedbackID()
331              
332             Unique identifier for the feedback entry.
333             Returned for a detail level of ReturnAll (if the parent is returned).
334              
335             # Argument: 'xs:string'
336              
337             =cut
338              
339             sub setFeedbackID {
340             my $self = shift;
341             $self->{'FeedbackID'} = shift
342             }
343              
344             =head2 getFeedbackID()
345              
346             Calls: GetFeedback
347             Returned: Conditionally
348             Details: DetailLevel: ReturnAll
349              
350             # Returns: 'xs:string'
351              
352             =cut
353              
354             sub getFeedbackID {
355             my $self = shift;
356             return $self->{'FeedbackID'};
357             }
358              
359              
360             =head2 setFeedbackResponse()
361              
362             Textual comment that the user targeted by feedback may leave in response or
363             rebuttal to the feedback. (Cannot be submitted
364             or edited via the API.)
365              
366             MaxLength: 80 (125 for Taiwan)
367              
368             # Argument: 'xs:string'
369              
370             =cut
371              
372             sub setFeedbackResponse {
373             my $self = shift;
374             $self->{'FeedbackResponse'} = shift
375             }
376              
377             =head2 getFeedbackResponse()
378              
379             Calls: GetFeedback
380             Returned: Conditionally
381             Details: DetailLevel: ReturnAll
382              
383             # Returns: 'xs:string'
384              
385             =cut
386              
387             sub getFeedbackResponse {
388             my $self = shift;
389             return $self->{'FeedbackResponse'};
390             }
391              
392              
393             =head2 setFollowUpReplaced()
394              
395             Indicates whether eBay replaced the follow-up with a message
396             that the follow-up was removed.
397              
398             # Argument: 'xs:boolean'
399              
400             =cut
401              
402             sub setFollowUpReplaced {
403             my $self = shift;
404             $self->{'FollowUpReplaced'} = shift
405             }
406              
407             =head2 isFollowUpReplaced()
408              
409             Calls: GetFeedback
410             Returned: Conditionally
411             Details: DetailLevel: ReturnAll
412              
413             # Returns: 'xs:boolean'
414              
415             =cut
416              
417             sub isFollowUpReplaced {
418             my $self = shift;
419             return $self->{'FollowUpReplaced'};
420             }
421              
422              
423             =head2 setFollowup()
424              
425             Explanation a user can give to a response.
426             (Cannot be submitted or edited via the API.)
427             Returned for a detail level of ReturnAll (if the parent is returned).
428              
429             MaxLength: 80 (125 for Taiwan)
430              
431             # Argument: 'xs:string'
432              
433             =cut
434              
435             sub setFollowup {
436             my $self = shift;
437             $self->{'Followup'} = shift
438             }
439              
440             =head2 getFollowup()
441              
442             Calls: GetFeedback
443             Returned: Conditionally
444             Details: DetailLevel: ReturnAll
445              
446             # Returns: 'xs:string'
447              
448             =cut
449              
450             sub getFollowup {
451             my $self = shift;
452             return $self->{'Followup'};
453             }
454              
455              
456             =head2 setItemID()
457              
458             The ID that uniquely identifies the item listing.
459             Returned for a detail level of ReturnAll (if the parent is returned).
460              
461             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
462              
463             # Argument: 'ns:ItemIDType'
464              
465             =cut
466              
467             sub setItemID {
468             my $self = shift;
469             $self->{'ItemID'} = shift
470             }
471              
472             =head2 getItemID()
473              
474             Calls: GetFeedback
475             Returned: Conditionally
476             Details: DetailLevel: ReturnAll
477              
478             # Returns: 'ns:ItemIDType'
479              
480             =cut
481              
482             sub getItemID {
483             my $self = shift;
484             return $self->_getDataTypeInstance( 'ItemID'
485             ,'eBay::API::XML::DataType::ItemIDType');
486             }
487              
488              
489             =head2 setItemPrice()
490              
491             The final price for the item, associated with
492             the currency identified by the currencyId attribute of the AmountType.
493             This value can be returned as part of the Detailed Seller Ratings feature.
494             Not returned if a listing ended more than 90 days ago.
495              
496             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=DetailedSellerRatings
497             Title: Detailed Seller Ratings
498              
499             # Argument: 'ns:AmountType'
500              
501             =cut
502              
503             sub setItemPrice {
504             my $self = shift;
505             $self->{'ItemPrice'} = shift
506             }
507              
508             =head2 getItemPrice()
509              
510             Calls: GetFeedback
511             Returned: Conditionally
512             Details: DetailLevel: ReturnAll
513              
514             # Returns: 'ns:AmountType'
515              
516             =cut
517              
518             sub getItemPrice {
519             my $self = shift;
520             return $self->_getDataTypeInstance( 'ItemPrice'
521             ,'eBay::API::XML::DataType::AmountType');
522             }
523              
524              
525             =head2 setItemTitle()
526              
527             Name of the listing for which feedback was provided. Returned as CDATA. This
528             value can be returned as part of the Detailed Seller Ratings feature.
529             Not returned if a listing ended more than 90 days ago.
530              
531             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=DetailedSellerRatings
532             Title: Detailed Seller Ratings
533             MaxLength: 55
534              
535             # Argument: 'xs:string'
536              
537             =cut
538              
539             sub setItemTitle {
540             my $self = shift;
541             $self->{'ItemTitle'} = shift
542             }
543              
544             =head2 getItemTitle()
545              
546             Calls: GetFeedback
547             Returned: Conditionally
548             Details: DetailLevel: ReturnAll
549              
550             # Returns: 'xs:string'
551              
552             =cut
553              
554             sub getItemTitle {
555             my $self = shift;
556             return $self->{'ItemTitle'};
557             }
558              
559              
560             =head2 setResponseReplaced()
561              
562             Indicates whether eBay replaced the response with a message
563             that the response was removed.
564              
565             # Argument: 'xs:boolean'
566              
567             =cut
568              
569             sub setResponseReplaced {
570             my $self = shift;
571             $self->{'ResponseReplaced'} = shift
572             }
573              
574             =head2 isResponseReplaced()
575              
576             Calls: GetFeedback
577             Returned: Conditionally
578             Details: DetailLevel: ReturnAll
579              
580             # Returns: 'xs:boolean'
581              
582             =cut
583              
584             sub isResponseReplaced {
585             my $self = shift;
586             return $self->{'ResponseReplaced'};
587             }
588              
589              
590             =head2 setRole()
591              
592             Indicates whether the user who was the feedback recipient was a Buyer or the
593             Seller for that transaction.
594             Returned for a detail level of ReturnAll (if the parent is returned).
595              
596             # Argument: 'ns:TradingRoleCodeType'
597              
598             =cut
599              
600             sub setRole {
601             my $self = shift;
602             $self->{'Role'} = shift
603             }
604              
605             =head2 getRole()
606              
607             Calls: GetFeedback
608             Returned: Conditionally
609             Details: DetailLevel: ReturnAll
610              
611             # Returns: 'ns:TradingRoleCodeType'
612              
613             =cut
614              
615             sub getRole {
616             my $self = shift;
617             return $self->{'Role'};
618             }
619              
620              
621             =head2 setTransactionID()
622              
623             Unique identifier for the transaction about which
624             this feedback entry was left.
625             This field is not returned in the case of TransactionIDs from Chinese auction listings,
626             because a value of zero is used for TransactionIDs in such cases.
627              
628             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
629              
630             # Argument: 'xs:string'
631              
632             =cut
633              
634             sub setTransactionID {
635             my $self = shift;
636             $self->{'TransactionID'} = shift
637             }
638              
639             =head2 getTransactionID()
640              
641             Calls: GetFeedback
642             Returned: Conditionally
643             Details: DetailLevel: ReturnAll
644              
645             # Returns: 'xs:string'
646              
647             =cut
648              
649             sub getTransactionID {
650             my $self = shift;
651             return $self->{'TransactionID'};
652             }
653              
654              
655              
656              
657              
658             ## Attribute and Property lists
659             sub getPropertiesList {
660             my $self = shift;
661             return \@gaProperties;
662             }
663              
664             sub getAttributesList {
665             my $self = shift;
666             return \@gaAttributes;
667             }
668              
669              
670              
671             1;