File Coverage

lib/eBay/API/XML/Call/GetFeedback/GetFeedbackRequestType.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::GetFeedback::GetFeedbackRequestType;
4              
5 1     1   1741 use strict;
  1         3  
  1         38  
6 1     1   5 use warnings;
  1         4  
  1         37  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetFeedbackRequestType.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::GetFeedback::GetFeedbackRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves summary feedback data if Transaction ID or Item ID are specified. Retrieves the accumulation of feedback left for the specified user by other users if a User ID is specified. Retrieves the accumulation of feedback left for the requesting user if no ID value
25             is entered.
26            
27             If a detail level value of ReturnAll is specified, the data for each
28             feedback record is returned.
29              
30              
31              
32             =head1 SYNOPSIS
33              
34             =cut
35              
36              
37             =head1 INHERITANCE
38              
39             eBay::API::XML::Call::GetFeedback::GetFeedbackRequestType inherits from the L class
40              
41             =cut
42              
43 1     1   48 use eBay::API::XML::RequestDataType;
  0            
  0            
44             our @ISA = ("eBay::API::XML::RequestDataType");
45              
46             use eBay::API::XML::DataType::ItemIDType;
47             use eBay::API::XML::DataType::PaginationType;
48             use eBay::API::XML::DataType::UserIDType;
49             use eBay::API::XML::DataType::Enum::CommentTypeCodeType;
50              
51              
52             my @gaProperties = ( [ 'CommentType', 'ns:CommentTypeCodeType', '1'
53             ,'eBay::API::XML::DataType::Enum::CommentTypeCodeType', '' ]
54             , [ 'FeedbackID', 'xs:string', '', '', '' ]
55             , [ 'ItemID', 'ns:ItemIDType', ''
56             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
57             , [ 'Pagination', 'ns:PaginationType', ''
58             ,'eBay::API::XML::DataType::PaginationType', '1' ]
59             , [ 'TransactionID', 'xs:string', '', '', '' ]
60             , [ 'UserID', 'ns:UserIDType', ''
61             ,'eBay::API::XML::DataType::UserIDType', '1' ]
62             );
63             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
64              
65             my @gaAttributes = (
66             );
67             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
68              
69             =head1 Subroutines:
70              
71             =cut
72              
73             sub new {
74             my $classname = shift;
75             my %args = @_;
76             my $self = $classname->SUPER::new(%args);
77             return $self;
78             }
79              
80             sub isScalar {
81             return 0;
82             }
83              
84              
85              
86             =head2 setCommentType()
87              
88             Returns feedback of a specified type (positive, negative, or neutral)
89             in a FeedbackDetailArray. You can include two CommentTypes in your call
90             if you want to exclude the third type from your results. If no CommentType is specified, all of the feedback details will be returned.
91              
92             RequiredInput: No
93             # Argument: reference to an array
94             of 'ns:CommentTypeCodeType'
95              
96             =cut
97              
98             sub setCommentType {
99             my $self = shift;
100             $self->{'CommentType'} =
101             $self->convertArray_To_RefToArrayIfNeeded(@_);
102             }
103              
104             =head2 getCommentType()
105              
106             # Returns: reference to an array
107             of 'ns:CommentTypeCodeType'
108              
109             =cut
110              
111             sub getCommentType {
112             my $self = shift;
113             return $self->_getDataTypeArray('CommentType');
114             }
115              
116              
117             =head2 setFeedbackID()
118              
119             An ID that uniquely identifies a feedback record to be retrieved.
120             Used by the Feedback notification only.
121              
122             RequiredInput: No
123             # Argument: 'xs:string'
124              
125             =cut
126              
127             sub setFeedbackID {
128             my $self = shift;
129             $self->{'FeedbackID'} = shift
130             }
131              
132             =head2 getFeedbackID()
133              
134             # Returns: 'xs:string'
135              
136             =cut
137              
138             sub getFeedbackID {
139             my $self = shift;
140             return $self->{'FeedbackID'};
141             }
142              
143              
144             =head2 setItemID()
145              
146             Specifies the item ID whose feedback data is to be returned. If not specified, then the feedback for all items is returned. When an
147             Item ID is specified, the maximum number of feedback records returned
148             is 100 and Pagination is ignored.
149              
150             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
151              
152             RequiredInput: No
153             # Argument: 'ns:ItemIDType'
154              
155             =cut
156              
157             sub setItemID {
158             my $self = shift;
159             $self->{'ItemID'} = shift
160             }
161              
162             =head2 getItemID()
163              
164             # Returns: 'ns:ItemIDType'
165              
166             =cut
167              
168             sub getItemID {
169             my $self = shift;
170             return $self->_getDataTypeInstance( 'ItemID'
171             ,'eBay::API::XML::DataType::ItemIDType');
172             }
173              
174              
175             =head2 setPagination()
176              
177             Controls the pagination of the result set. Child elements, EntriesPerPage
178             and PageNumber, specify the maximum number of individual feedback records to return per call and which page of data to return. Only applicable if a
179             detail level value of ReturnAll is specified and the UserID or no ID (requester option) is specified. Feedback summary data is not paginated (but is still returned when
180             pagination is used).
181            
182             Valid Pagination.EntriesPerPage input for GetFeedback is limited to 25,
183             50, 100, and 200. Other values will be treated as the closest valid input
184             less than the value specified or 25. If a value of zero or less or a
185             value greater than 200 is specified, the call fails with an error.
186             When pagination is used and feedback detail entries are being returned,
187             the summary data is returned after the last feedback detail entry on the
188             last page of data.
189              
190             RequiredInput: No
191             OnlyTheseValues: 25, 50, 100, 200
192             # Argument: 'ns:PaginationType'
193              
194             =cut
195              
196             sub setPagination {
197             my $self = shift;
198             $self->{'Pagination'} = shift
199             }
200              
201             =head2 getPagination()
202              
203             # Returns: 'ns:PaginationType'
204              
205             =cut
206              
207             sub getPagination {
208             my $self = shift;
209             return $self->_getDataTypeInstance( 'Pagination'
210             ,'eBay::API::XML::DataType::PaginationType');
211             }
212              
213              
214             =head2 setTransactionID()
215              
216             Transaction ID whose feedback record should be returned. If not specified,
217             then the feedback for all transactions will be returned. When a Transaction ID is specified, since only one record is returned,
218             Pagination is ignored.
219              
220             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
221              
222             RequiredInput: No
223             # Argument: 'xs:string'
224              
225             =cut
226              
227             sub setTransactionID {
228             my $self = shift;
229             $self->{'TransactionID'} = shift
230             }
231              
232             =head2 getTransactionID()
233              
234             # Returns: 'xs:string'
235              
236             =cut
237              
238             sub getTransactionID {
239             my $self = shift;
240             return $self->{'TransactionID'};
241             }
242              
243              
244             =head2 setUserID()
245              
246             Specifies the user whose feedback data is to be returned. If not specified, then the feedback returned is for the requesting user.
247              
248             RequiredInput: No
249             # Argument: 'ns:UserIDType'
250              
251             =cut
252              
253             sub setUserID {
254             my $self = shift;
255             $self->{'UserID'} = shift
256             }
257              
258             =head2 getUserID()
259              
260             # Returns: 'ns:UserIDType'
261              
262             =cut
263              
264             sub getUserID {
265             my $self = shift;
266             return $self->_getDataTypeInstance( 'UserID'
267             ,'eBay::API::XML::DataType::UserIDType');
268             }
269              
270              
271              
272              
273              
274             ## Attribute and Property lists
275             sub getPropertiesList {
276             my $self = shift;
277             return \@gaProperties;
278             }
279              
280             sub getAttributesList {
281             my $self = shift;
282             return \@gaAttributes;
283             }
284              
285              
286              
287             1;