line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::WantItNowPostType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1580
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. WantItNowPostType.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::WantItNowPostType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Contains the data describing a single Want It Now post. Buyers create Want It Now |
25
|
|
|
|
|
|
|
posts to communicate to sellers specific requirements for items they would like to |
26
|
|
|
|
|
|
|
buy. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 INHERITANCE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
eBay::API::XML::DataType::WantItNowPostType inherits from the L class |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
1
|
|
41
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemIDType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SiteCodeType; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my @gaProperties = ( [ 'CategoryID', 'xs:string', '', '', '' ] |
49
|
|
|
|
|
|
|
, [ 'Description', 'xs:string', '', '', '' ] |
50
|
|
|
|
|
|
|
, [ 'PostID', 'ns:ItemIDType', '' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType', '1' ] |
52
|
|
|
|
|
|
|
, [ 'ResponseCount', 'xs:int', '', '', '' ] |
53
|
|
|
|
|
|
|
, [ 'Site', 'ns:SiteCodeType', '' |
54
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SiteCodeType', '' ] |
55
|
|
|
|
|
|
|
, [ 'StartTime', 'xs:dateTime', '', '', '' ] |
56
|
|
|
|
|
|
|
, [ 'Title', 'xs:string', '', '', '' ] |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my @gaAttributes = ( |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 Subroutines: |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub new { |
69
|
|
|
|
|
|
|
my $classname = shift; |
70
|
|
|
|
|
|
|
my %args = @_; |
71
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
72
|
|
|
|
|
|
|
return $self; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub isScalar { |
76
|
|
|
|
|
|
|
return 0; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 setCategoryID() |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
ID of the category in which the Want It Now post is listed. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
MaxLength: 10 |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
# Argument: 'xs:string' |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub setCategoryID { |
92
|
|
|
|
|
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
$self->{'CategoryID'} = shift |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 getCategoryID() |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
99
|
|
|
|
|
|
|
Returned: Conditionally |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
102
|
|
|
|
|
|
|
Returned: Always |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# Returns: 'xs:string' |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
sub getCategoryID { |
109
|
|
|
|
|
|
|
my $self = shift; |
110
|
|
|
|
|
|
|
return $self->{'CategoryID'}; |
111
|
|
|
|
|
|
|
} |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 setDescription() |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Description of a Want It Now post. Description will not be returned for |
117
|
|
|
|
|
|
|
GetWantItNowSearchResults. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# Argument: 'xs:string' |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
sub setDescription { |
124
|
|
|
|
|
|
|
my $self = shift; |
125
|
|
|
|
|
|
|
$self->{'Description'} = shift |
126
|
|
|
|
|
|
|
} |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 getDescription() |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
131
|
|
|
|
|
|
|
Returned: Always |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
# Returns: 'xs:string' |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
sub getDescription { |
138
|
|
|
|
|
|
|
my $self = shift; |
139
|
|
|
|
|
|
|
return $self->{'Description'}; |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 setPostID() |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
ID that uniquely identifies a Want It Now post. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# Argument: 'ns:ItemIDType' |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
sub setPostID { |
152
|
|
|
|
|
|
|
my $self = shift; |
153
|
|
|
|
|
|
|
$self->{'PostID'} = shift |
154
|
|
|
|
|
|
|
} |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 getPostID() |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
159
|
|
|
|
|
|
|
Returned: Conditionally |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
162
|
|
|
|
|
|
|
Returned: Always |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Returns: 'ns:ItemIDType' |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getPostID { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'PostID' |
171
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType'); |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 setResponseCount() |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Number of responses for a Want It Now post. Sellers respond to a Want It |
178
|
|
|
|
|
|
|
Now post by submitting an item number, so each response corresponds to an item |
179
|
|
|
|
|
|
|
listing. |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
# Argument: 'xs:int' |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=cut |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
sub setResponseCount { |
186
|
|
|
|
|
|
|
my $self = shift; |
187
|
|
|
|
|
|
|
$self->{'ResponseCount'} = shift |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head2 getResponseCount() |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
193
|
|
|
|
|
|
|
Returned: Conditionally |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
196
|
|
|
|
|
|
|
Returned: Always |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
# Returns: 'xs:int' |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=cut |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
sub getResponseCount { |
203
|
|
|
|
|
|
|
my $self = shift; |
204
|
|
|
|
|
|
|
return $self->{'ResponseCount'}; |
205
|
|
|
|
|
|
|
} |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=head2 setSite() |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
Site where the Want It Now post is listed. |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
# Argument: 'ns:SiteCodeType' |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=cut |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
sub setSite { |
217
|
|
|
|
|
|
|
my $self = shift; |
218
|
|
|
|
|
|
|
$self->{'Site'} = shift |
219
|
|
|
|
|
|
|
} |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
=head2 getSite() |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
224
|
|
|
|
|
|
|
Returned: Conditionally |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
227
|
|
|
|
|
|
|
Returned: Always |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
# Returns: 'ns:SiteCodeType' |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=cut |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
sub getSite { |
234
|
|
|
|
|
|
|
my $self = shift; |
235
|
|
|
|
|
|
|
return $self->{'Site'}; |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head2 setStartTime() |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
Date and time (in GMT) that a Want It Now post was added. |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=cut |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
sub setStartTime { |
248
|
|
|
|
|
|
|
my $self = shift; |
249
|
|
|
|
|
|
|
$self->{'StartTime'} = shift |
250
|
|
|
|
|
|
|
} |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
=head2 getStartTime() |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
255
|
|
|
|
|
|
|
Returned: Conditionally |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
258
|
|
|
|
|
|
|
Returned: Always |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
=cut |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
sub getStartTime { |
265
|
|
|
|
|
|
|
my $self = shift; |
266
|
|
|
|
|
|
|
return $self->{'StartTime'}; |
267
|
|
|
|
|
|
|
} |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
=head2 setTitle() |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
Title of a Want It Now post. |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
# Argument: 'xs:string' |
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
=cut |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
sub setTitle { |
279
|
|
|
|
|
|
|
my $self = shift; |
280
|
|
|
|
|
|
|
$self->{'Title'} = shift |
281
|
|
|
|
|
|
|
} |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
=head2 getTitle() |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
Calls: GetWantItNowSearchResults |
286
|
|
|
|
|
|
|
Returned: Conditionally |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
Calls: GetWantItNowPost |
289
|
|
|
|
|
|
|
Returned: Always |
290
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
# Returns: 'xs:string' |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
=cut |
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
sub getTitle { |
296
|
|
|
|
|
|
|
my $self = shift; |
297
|
|
|
|
|
|
|
return $self->{'Title'}; |
298
|
|
|
|
|
|
|
} |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
## Attribute and Property lists |
305
|
|
|
|
|
|
|
sub getPropertiesList { |
306
|
|
|
|
|
|
|
my $self = shift; |
307
|
|
|
|
|
|
|
return \@gaProperties; |
308
|
|
|
|
|
|
|
} |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
sub getAttributesList { |
311
|
|
|
|
|
|
|
my $self = shift; |
312
|
|
|
|
|
|
|
return \@gaAttributes; |
313
|
|
|
|
|
|
|
} |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
1; |