File Coverage

lib/eBay/API/XML/Call/RespondToFeedback/RespondToFeedbackRequestType.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::RespondToFeedback::RespondToFeedbackRequestType;
4              
5 1     1   1833 use strict;
  1         2  
  1         34  
6 1     1   5 use warnings;
  1         2  
  1         31  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. RespondToFeedbackRequestType.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::RespondToFeedback::RespondToFeedbackRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables users to reply to feedback left by the other
25             party in the transaction and/or follow up on the
26             feedback left for the other party.
27             You cannot use the API for mutual feedback withdrawal,
28             even though this functionality is available on the eBay site.
29              
30              
31              
32             =head1 SYNOPSIS
33              
34             =cut
35              
36              
37             =head1 INHERITANCE
38              
39             eBay::API::XML::Call::RespondToFeedback::RespondToFeedbackRequestType inherits from the L class
40              
41             =cut
42              
43 1     1   38 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::UserIDType;
48             use eBay::API::XML::DataType::Enum::FeedbackResponseCodeType;
49              
50              
51             my @gaProperties = ( [ 'FeedbackID', 'xs:string', '', '', '' ]
52             , [ 'ItemID', 'ns:ItemIDType', ''
53             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
54             , [ 'ResponseText', 'xs:string', '', '', '' ]
55             , [ 'ResponseType', 'ns:FeedbackResponseCodeType', ''
56             ,'eBay::API::XML::DataType::Enum::FeedbackResponseCodeType', '' ]
57             , [ 'TargetUserID', 'ns:UserIDType', ''
58             ,'eBay::API::XML::DataType::UserIDType', '1' ]
59             , [ 'TransactionID', 'xs:string', '', '', '' ]
60             );
61             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
62              
63             my @gaAttributes = (
64             );
65             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
66              
67             =head1 Subroutines:
68              
69             =cut
70              
71             sub new {
72             my $classname = shift;
73             my %args = @_;
74             my $self = $classname->SUPER::new(%args);
75             return $self;
76             }
77              
78             sub isScalar {
79             return 0;
80             }
81              
82              
83              
84             =head2 setFeedbackID()
85              
86             ID that uniquely identifies the feedback.
87             FeedbackIDs can be retrieved by using
88             GetFeedback. Required if ItemID is not
89             specified.
90              
91             RequiredInput: Conditionally
92             # Argument: 'xs:string'
93              
94             =cut
95              
96             sub setFeedbackID {
97             my $self = shift;
98             $self->{'FeedbackID'} = shift
99             }
100              
101             =head2 getFeedbackID()
102              
103             # Returns: 'xs:string'
104              
105             =cut
106              
107             sub getFeedbackID {
108             my $self = shift;
109             return $self->{'FeedbackID'};
110             }
111              
112              
113             =head2 setItemID()
114              
115             Unique identifier of an item to which the
116             feedback is attached. Required if FeedbackID is
117             not provided.
118              
119             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
120              
121             RequiredInput: Conditionally
122             # Argument: 'ns:ItemIDType'
123              
124             =cut
125              
126             sub setItemID {
127             my $self = shift;
128             $self->{'ItemID'} = shift
129             }
130              
131             =head2 getItemID()
132              
133             # Returns: 'ns:ItemIDType'
134              
135             =cut
136              
137             sub getItemID {
138             my $self = shift;
139             return $self->_getDataTypeInstance( 'ItemID'
140             ,'eBay::API::XML::DataType::ItemIDType');
141             }
142              
143              
144             =head2 setResponseText()
145              
146             Textual comment that the user who is
147             subject of feedback may leave in response or
148             rebuttal to the feedback. Alternatively, when
149             the ResponseType is FollowUp, this value
150             contains the text of the follow-up comment. Max
151             length is 125 for the Taiwan site.
152              
153             MaxLength: 80
154              
155             RequiredInput: Yes
156             # Argument: 'xs:string'
157              
158             =cut
159              
160             sub setResponseText {
161             my $self = shift;
162             $self->{'ResponseText'} = shift
163             }
164              
165             =head2 getResponseText()
166              
167             # Returns: 'xs:string'
168              
169             =cut
170              
171             sub getResponseText {
172             my $self = shift;
173             return $self->{'ResponseText'};
174             }
175              
176              
177             =head2 setResponseType()
178              
179             Specifies whether the response is a reply
180             or a follow-up.
181              
182             RequiredInput: Yes
183             # Argument: 'ns:FeedbackResponseCodeType'
184              
185             =cut
186              
187             sub setResponseType {
188             my $self = shift;
189             $self->{'ResponseType'} = shift
190             }
191              
192             =head2 getResponseType()
193              
194             # Returns: 'ns:FeedbackResponseCodeType'
195              
196             =cut
197              
198             sub getResponseType {
199             my $self = shift;
200             return $self->{'ResponseType'};
201             }
202              
203              
204             =head2 setTargetUserID()
205              
206             User who left the feedback that is being
207             replied to or followed up on.
208              
209             RequiredInput: Yes
210             # Argument: 'ns:UserIDType'
211              
212             =cut
213              
214             sub setTargetUserID {
215             my $self = shift;
216             $self->{'TargetUserID'} = shift
217             }
218              
219             =head2 getTargetUserID()
220              
221             # Returns: 'ns:UserIDType'
222              
223             =cut
224              
225             sub getTargetUserID {
226             my $self = shift;
227             return $self->_getDataTypeInstance( 'TargetUserID'
228             ,'eBay::API::XML::DataType::UserIDType');
229             }
230              
231              
232             =head2 setTransactionID()
233              
234             Unique identifier for a purchase from an
235             eBay Stores Inventory or basic fixed price
236             listing. If TransactionID is specified, ItemID
237             must also be specified.
238              
239             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
240              
241             RequiredInput: No
242             # Argument: 'xs:string'
243              
244             =cut
245              
246             sub setTransactionID {
247             my $self = shift;
248             $self->{'TransactionID'} = shift
249             }
250              
251             =head2 getTransactionID()
252              
253             # Returns: 'xs:string'
254              
255             =cut
256              
257             sub getTransactionID {
258             my $self = shift;
259             return $self->{'TransactionID'};
260             }
261              
262              
263              
264              
265              
266             ## Attribute and Property lists
267             sub getPropertiesList {
268             my $self = shift;
269             return \@gaProperties;
270             }
271              
272             sub getAttributesList {
273             my $self = shift;
274             return \@gaAttributes;
275             }
276              
277              
278              
279             1;