| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::GetFeedback; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 2839 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 32 |  | 
| 6 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 33 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. GetFeedback.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 | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::GetFeedback inherits from the L class | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =cut | 
| 36 |  |  |  |  |  |  |  | 
| 37 | 1 |  |  | 1 |  | 42 | use eBay::API::XML::BaseCall; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseCall"); | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | use eBay::API::XML::Call::GetFeedback::GetFeedbackRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::GetFeedback::GetFeedbackResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'GetFeedback'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetFeedback::GetFeedbackRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetFeedback::GetFeedbackResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setCommentType() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Returns feedback of a specified type (positive, negative, or neutral) | 
| 65 |  |  |  |  |  |  | in a FeedbackDetailArray. You can include two CommentTypes in your call | 
| 66 |  |  |  |  |  |  | if you want to exclude the third type from your results. If no CommentType is specified, all of the feedback details will be returned. | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | RequiredInput: No | 
| 69 |  |  |  |  |  |  | #    Argument: reference to an array | 
| 70 |  |  |  |  |  |  | of 'ns:CommentTypeCodeType' | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | =cut | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | sub setCommentType { | 
| 75 |  |  |  |  |  |  | my $self   = shift; | 
| 76 |  |  |  |  |  |  | my $sCommentType = shift; | 
| 77 |  |  |  |  |  |  | $self->getRequestDataType()->setCommentType($sCommentType); | 
| 78 |  |  |  |  |  |  | } | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | =head2 setFeedbackID() | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | An ID that uniquely identifies a feedback record to be retrieved. | 
| 83 |  |  |  |  |  |  | Used by the Feedback notification only. | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | RequiredInput: No | 
| 86 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  | =cut | 
| 89 |  |  |  |  |  |  |  | 
| 90 |  |  |  |  |  |  | sub setFeedbackID { | 
| 91 |  |  |  |  |  |  | my $self   = shift; | 
| 92 |  |  |  |  |  |  | my $sFeedbackID = shift; | 
| 93 |  |  |  |  |  |  | $self->getRequestDataType()->setFeedbackID($sFeedbackID); | 
| 94 |  |  |  |  |  |  | } | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | =head2 setItemID() | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | Specifies the item ID whose feedback data is to be returned. If not specified, then the feedback for all items is returned. When an | 
| 99 |  |  |  |  |  |  | Item ID is specified, the maximum number of feedback records returned | 
| 100 |  |  |  |  |  |  | is 100 and Pagination is ignored. | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | RequiredInput: No | 
| 105 |  |  |  |  |  |  | #    Argument: 'ns:ItemIDType' | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | =cut | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | sub setItemID { | 
| 110 |  |  |  |  |  |  | my $self   = shift; | 
| 111 |  |  |  |  |  |  | my $pItemID = shift; | 
| 112 |  |  |  |  |  |  | $self->getRequestDataType()->setItemID($pItemID); | 
| 113 |  |  |  |  |  |  | } | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | =head2 setPagination() | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | Controls the pagination of the result set. Child elements, EntriesPerPage | 
| 118 |  |  |  |  |  |  | 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 | 
| 119 |  |  |  |  |  |  | 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 | 
| 120 |  |  |  |  |  |  | pagination is used). | 
| 121 |  |  |  |  |  |  | 
 | 
| 122 |  |  |  |  |  |  | Valid Pagination.EntriesPerPage input for GetFeedback is limited to 25, | 
| 123 |  |  |  |  |  |  | 50, 100, and 200. Other values will be treated as the closest valid input | 
| 124 |  |  |  |  |  |  | less than the value specified or 25. If a value of zero or less or a | 
| 125 |  |  |  |  |  |  | value greater than 200 is specified, the call fails with an error. | 
| 126 |  |  |  |  |  |  | When pagination is used and feedback detail entries are being returned, | 
| 127 |  |  |  |  |  |  | the summary data is returned after the last feedback detail entry on the | 
| 128 |  |  |  |  |  |  | last page of data. | 
| 129 |  |  |  |  |  |  |  | 
| 130 |  |  |  |  |  |  | RequiredInput: No | 
| 131 |  |  |  |  |  |  | OnlyTheseValues: 25, 50, 100, 200 | 
| 132 |  |  |  |  |  |  | #    Argument: 'ns:PaginationType' | 
| 133 |  |  |  |  |  |  |  | 
| 134 |  |  |  |  |  |  | =cut | 
| 135 |  |  |  |  |  |  |  | 
| 136 |  |  |  |  |  |  | sub setPagination { | 
| 137 |  |  |  |  |  |  | my $self   = shift; | 
| 138 |  |  |  |  |  |  | my $pPagination = shift; | 
| 139 |  |  |  |  |  |  | $self->getRequestDataType()->setPagination($pPagination); | 
| 140 |  |  |  |  |  |  | } | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | =head2 setTransactionID() | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | Transaction ID whose feedback record should be returned. If not specified, | 
| 145 |  |  |  |  |  |  | then the feedback for all transactions will be returned. When a Transaction ID is specified, since only one record is returned, | 
| 146 |  |  |  |  |  |  | Pagination is ignored. | 
| 147 |  |  |  |  |  |  |  | 
| 148 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.) | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | RequiredInput: No | 
| 151 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 152 |  |  |  |  |  |  |  | 
| 153 |  |  |  |  |  |  | =cut | 
| 154 |  |  |  |  |  |  |  | 
| 155 |  |  |  |  |  |  | sub setTransactionID { | 
| 156 |  |  |  |  |  |  | my $self   = shift; | 
| 157 |  |  |  |  |  |  | my $sTransactionID = shift; | 
| 158 |  |  |  |  |  |  | $self->getRequestDataType()->setTransactionID($sTransactionID); | 
| 159 |  |  |  |  |  |  | } | 
| 160 |  |  |  |  |  |  |  | 
| 161 |  |  |  |  |  |  | =head2 setUserID() | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | Specifies the user whose feedback data is to be returned. If not specified, then the feedback returned is for the requesting user. | 
| 164 |  |  |  |  |  |  |  | 
| 165 |  |  |  |  |  |  | RequiredInput: No | 
| 166 |  |  |  |  |  |  | #    Argument: 'ns:UserIDType' | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | =cut | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | sub setUserID { | 
| 171 |  |  |  |  |  |  | my $self   = shift; | 
| 172 |  |  |  |  |  |  | my $pUserID = shift; | 
| 173 |  |  |  |  |  |  | $self->getRequestDataType()->setUserID($pUserID); | 
| 174 |  |  |  |  |  |  | } | 
| 175 |  |  |  |  |  |  |  | 
| 176 |  |  |  |  |  |  |  | 
| 177 |  |  |  |  |  |  |  | 
| 178 |  |  |  |  |  |  | # | 
| 179 |  |  |  |  |  |  | # output properties | 
| 180 |  |  |  |  |  |  | # | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | =head2 getEntriesPerPage() | 
| 183 |  |  |  |  |  |  |  | 
| 184 |  |  |  |  |  |  | Indicates the number of entries (feedback detail) that are being | 
| 185 |  |  |  |  |  |  | returned per page of data (i.e., per call). | 
| 186 |  |  |  |  |  |  | Only returned if entries are returned. | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  | Returned: Conditionally | 
| 189 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 190 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 191 |  |  |  |  |  |  |  | 
| 192 |  |  |  |  |  |  | =cut | 
| 193 |  |  |  |  |  |  |  | 
| 194 |  |  |  |  |  |  | sub getEntriesPerPage { | 
| 195 |  |  |  |  |  |  | my $self = shift; | 
| 196 |  |  |  |  |  |  | return $self->getResponseDataType()->getEntriesPerPage(); | 
| 197 |  |  |  |  |  |  | } | 
| 198 |  |  |  |  |  |  |  | 
| 199 |  |  |  |  |  |  | =head2 getFeedbackDetailArray() | 
| 200 |  |  |  |  |  |  |  | 
| 201 |  |  |  |  |  |  | Contains the individual feedback records for the user, transaction, or | 
| 202 |  |  |  |  |  |  | item is specified in the request. There is one FeedbackDetailType | 
| 203 |  |  |  |  |  |  | object for each feedback record. Only populated with data when a detail level of ReturnAll is specified in the request. Not returned if you specify FeedbackID in the request. | 
| 204 |  |  |  |  |  |  |  | 
| 205 |  |  |  |  |  |  | Returned: Conditionally | 
| 206 |  |  |  |  |  |  | Details: DetailLevel: ReturnAll | 
| 207 |  |  |  |  |  |  | #    Returns: 'ns:FeedbackDetailArrayType' | 
| 208 |  |  |  |  |  |  |  | 
| 209 |  |  |  |  |  |  | =cut | 
| 210 |  |  |  |  |  |  |  | 
| 211 |  |  |  |  |  |  | sub getFeedbackDetailArray { | 
| 212 |  |  |  |  |  |  | my $self = shift; | 
| 213 |  |  |  |  |  |  | return $self->getResponseDataType()->getFeedbackDetailArray(); | 
| 214 |  |  |  |  |  |  | } | 
| 215 |  |  |  |  |  |  |  | 
| 216 |  |  |  |  |  |  | =head2 getFeedbackDetailItemTotal() | 
| 217 |  |  |  |  |  |  |  | 
| 218 |  |  |  |  |  |  | Indicates the number of FeedbackDetailType objects returned in the | 
| 219 |  |  |  |  |  |  | FeedbackDetailArray property. Only applicable if feedback details are | 
| 220 |  |  |  |  |  |  | returned. | 
| 221 |  |  |  |  |  |  |  | 
| 222 |  |  |  |  |  |  | Returned: Conditionally | 
| 223 |  |  |  |  |  |  | Details: DetailLevel: ReturnAll | 
| 224 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 225 |  |  |  |  |  |  |  | 
| 226 |  |  |  |  |  |  | =cut | 
| 227 |  |  |  |  |  |  |  | 
| 228 |  |  |  |  |  |  | sub getFeedbackDetailItemTotal { | 
| 229 |  |  |  |  |  |  | my $self = shift; | 
| 230 |  |  |  |  |  |  | return $self->getResponseDataType()->getFeedbackDetailItemTotal(); | 
| 231 |  |  |  |  |  |  | } | 
| 232 |  |  |  |  |  |  |  | 
| 233 |  |  |  |  |  |  | =head2 getFeedbackScore() | 
| 234 |  |  |  |  |  |  |  | 
| 235 |  |  |  |  |  |  | Indicates the total feedback score for the user. | 
| 236 |  |  |  |  |  |  |  | 
| 237 |  |  |  |  |  |  | Returned: Always | 
| 238 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 239 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 240 |  |  |  |  |  |  |  | 
| 241 |  |  |  |  |  |  | =cut | 
| 242 |  |  |  |  |  |  |  | 
| 243 |  |  |  |  |  |  | sub getFeedbackScore { | 
| 244 |  |  |  |  |  |  | my $self = shift; | 
| 245 |  |  |  |  |  |  | return $self->getResponseDataType()->getFeedbackScore(); | 
| 246 |  |  |  |  |  |  | } | 
| 247 |  |  |  |  |  |  |  | 
| 248 |  |  |  |  |  |  | =head2 getFeedbackSummary() | 
| 249 |  |  |  |  |  |  |  | 
| 250 |  |  |  |  |  |  | Summary feedback data for the user. Contains counts of positive, neutral, | 
| 251 |  |  |  |  |  |  | and negative feedback for predefined time periods. Only applicable if feedback details are returned. | 
| 252 |  |  |  |  |  |  |  | 
| 253 |  |  |  |  |  |  | Returned: Conditionally | 
| 254 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 255 |  |  |  |  |  |  | #    Returns: 'ns:FeedbackSummaryType' | 
| 256 |  |  |  |  |  |  |  | 
| 257 |  |  |  |  |  |  | =cut | 
| 258 |  |  |  |  |  |  |  | 
| 259 |  |  |  |  |  |  | sub getFeedbackSummary { | 
| 260 |  |  |  |  |  |  | my $self = shift; | 
| 261 |  |  |  |  |  |  | return $self->getResponseDataType()->getFeedbackSummary(); | 
| 262 |  |  |  |  |  |  | } | 
| 263 |  |  |  |  |  |  |  | 
| 264 |  |  |  |  |  |  | =head2 getPageNumber() | 
| 265 |  |  |  |  |  |  |  | 
| 266 |  |  |  |  |  |  | Indicates which page of data was just returned. Will be the same as the | 
| 267 |  |  |  |  |  |  | value specified in Pagination.PageNumber. (If the input is | 
| 268 |  |  |  |  |  |  | higher than the total number of pages, the call fails with an error.) | 
| 269 |  |  |  |  |  |  | Only returned if items are returned. | 
| 270 |  |  |  |  |  |  |  | 
| 271 |  |  |  |  |  |  | Returned: Conditionally | 
| 272 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 273 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 274 |  |  |  |  |  |  |  | 
| 275 |  |  |  |  |  |  | =cut | 
| 276 |  |  |  |  |  |  |  | 
| 277 |  |  |  |  |  |  | sub getPageNumber { | 
| 278 |  |  |  |  |  |  | my $self = shift; | 
| 279 |  |  |  |  |  |  | return $self->getResponseDataType()->getPageNumber(); | 
| 280 |  |  |  |  |  |  | } | 
| 281 |  |  |  |  |  |  |  | 
| 282 |  |  |  |  |  |  | =head2 getPaginationResult() | 
| 283 |  |  |  |  |  |  |  | 
| 284 |  |  |  |  |  |  | Contains information regarding the pagination of data (if pagination is | 
| 285 |  |  |  |  |  |  | used), including total number of pages and total number of entries. This | 
| 286 |  |  |  |  |  |  | is only applicable when a User ID or no ID (requester option) is specified. | 
| 287 |  |  |  |  |  |  |  | 
| 288 |  |  |  |  |  |  | Returned: Always | 
| 289 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 290 |  |  |  |  |  |  | #    Returns: 'ns:PaginationResultType' | 
| 291 |  |  |  |  |  |  |  | 
| 292 |  |  |  |  |  |  | =cut | 
| 293 |  |  |  |  |  |  |  | 
| 294 |  |  |  |  |  |  | sub getPaginationResult { | 
| 295 |  |  |  |  |  |  | my $self = shift; | 
| 296 |  |  |  |  |  |  | return $self->getResponseDataType()->getPaginationResult(); | 
| 297 |  |  |  |  |  |  | } | 
| 298 |  |  |  |  |  |  |  | 
| 299 |  |  |  |  |  |  |  | 
| 300 |  |  |  |  |  |  |  | 
| 301 |  |  |  |  |  |  |  | 
| 302 |  |  |  |  |  |  |  | 
| 303 |  |  |  |  |  |  | 1; |