File Coverage

lib/eBay/API/XML/Call/LeaveFeedback.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::LeaveFeedback;
4              
5 1     1   2527 use strict;
  1         3  
  1         37  
6 1     1   5 use warnings;
  1         2  
  1         35  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. LeaveFeedback.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::LeaveFeedback
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::LeaveFeedback inherits from the L class
34              
35             =cut
36              
37 1     1   47 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::LeaveFeedback::LeaveFeedbackRequestType;
41             use eBay::API::XML::Call::LeaveFeedback::LeaveFeedbackResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'LeaveFeedback';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::LeaveFeedback::LeaveFeedbackRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::LeaveFeedback::LeaveFeedbackResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setCommentText()
63              
64             Textual comment that explains, clarifies, or justifies the feedback
65             score specified in CommentType.
66              
67             RequiredInput: Yes
68             # Argument: 'xs:string'
69              
70             =cut
71            
72             sub setCommentText {
73             my $self = shift;
74             my $sCommentText = shift;
75             $self->getRequestDataType()->setCommentText($sCommentText);
76             }
77              
78             =head2 setCommentType()
79              
80             Score for the feedback being left. May be Positive, Neutral, or
81             Negative.
82            

83             Note:
84             Beginning in May 2008, sellers can no longer leave neutral or negative
85             feedback for buyers. Buyers can no longer leave neutral or negative feedback
86             within 7 days from the end of the transaction for active PowerSellers who
87             have been on eBay for 12 months.
88            
89              
90             RequiredInput: Yes
91             AllValuesExcept: Withdrawn, IndependentlyWithdrawn
92             # Argument: 'ns:CommentTypeCodeType'
93              
94             =cut
95            
96             sub setCommentType {
97             my $self = shift;
98             my $sCommentType = shift;
99             $self->getRequestDataType()->setCommentType($sCommentType);
100             }
101              
102             =head2 setItemID()
103              
104             The ID of an item. Specify the ID for the item of
105             the transaction of the users. The transaction must not have been
106             created more than 90 days before your attempt to leave feedback.
107              
108             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
109              
110             RequiredInput: Yes
111             # Argument: 'ns:ItemIDType'
112              
113             =cut
114            
115             sub setItemID {
116             my $self = shift;
117             my $pItemID = shift;
118             $self->getRequestDataType()->setItemID($pItemID);
119             }
120              
121             =head2 setSellerItemRatingDetailArray()
122              
123             Container for detailed seller ratings (DSRs).
124             If a buyer is providing DSRs, they are specified in this container.
125             Sellers have access to the number of ratings they've received, as well as
126             to the averages of the DSRs they've received in each
127             DSR area (i.e., to the average of ratings in the item-description area, etc.).
128             By March 2007, the DSR feature will be available on the United Kingdom site
129             and on the following other sites: AU (site ID 15), BEFR (site ID 23),
130             BENL (site ID 123), FR (site ID 71), IE (site ID 205), IN (site ID 203),
131             IT (site ID 101), and PL (site ID 212).
132             In Summer 2007, the DSR feature will be available on the other
133             API-enabled country sites, including the US site (site ID 0).
134              
135             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=DetailedSellerRatings
136             Title: Detailed Seller Ratings
137              
138             RequiredInput: No
139             # Argument: 'ns:ItemRatingDetailArrayType'
140              
141             =cut
142            
143             sub setSellerItemRatingDetailArray {
144             my $self = shift;
145             my $pSellerItemRatingDetailArray = shift;
146             $self->getRequestDataType()->setSellerItemRatingDetailArray($pSellerItemRatingDetailArray);
147             }
148              
149             =head2 setTargetUser()
150              
151             Specifies the recipient user about whom the feedback is being left.
152              
153             RequiredInput: Yes
154             # Argument: 'ns:UserIDType'
155              
156             =cut
157            
158             sub setTargetUser {
159             my $self = shift;
160             my $pTargetUser = shift;
161             $self->getRequestDataType()->setTargetUser($pTargetUser);
162             }
163              
164             =head2 setTransactionID()
165              
166             The item purchase transaction from the listing specified in ItemID for
167             which the feedback is being left. Required if the listing identified in
168             ItemID was a multi-item listing (Dutch auction or multi-item fixed-price
169             listing).
170              
171             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
172              
173             RequiredInput: Conditionally
174             # Argument: 'xs:string'
175              
176             =cut
177            
178             sub setTransactionID {
179             my $self = shift;
180             my $sTransactionID = shift;
181             $self->getRequestDataType()->setTransactionID($sTransactionID);
182             }
183              
184              
185              
186             #
187             # output properties
188             #
189              
190             =head2 getFeedbackID()
191              
192             The ID of the feedback that has been left.
193              
194             Returned: Always
195             # Returns: 'xs:string'
196              
197             =cut
198            
199             sub getFeedbackID {
200             my $self = shift;
201             return $self->getResponseDataType()->getFeedbackID();
202             }
203              
204              
205              
206              
207              
208             1;