line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetItem::GetItemRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1572
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. GetItemRequestType.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::GetItem::GetItemRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Requests data for a specific item identified by item ID. Use no |
25
|
|
|
|
|
|
|
DetailLevel to return all item fields without Item.Description. |
26
|
|
|
|
|
|
|
Use a DetailLevel of ReturnAll to return all item fields. See |
27
|
|
|
|
|
|
|
GetItem in the eBay Web Services Guide for more information. |
28
|
|
|
|
|
|
|
If a listing ended more than 90 days ago, its title, |
29
|
|
|
|
|
|
|
price, and other item information are not returned. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 INHERITANCE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
eBay::API::XML::Call::GetItem::GetItemRequestType inherits from the L class |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemIDType; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my @gaProperties = ( [ 'IncludeCrossPromotion', 'xs:boolean', '', '', '' ] |
51
|
|
|
|
|
|
|
, [ 'IncludeItemSpecifics', 'xs:boolean', '', '', '' ] |
52
|
|
|
|
|
|
|
, [ 'IncludeTaxTable', 'xs:boolean', '', '', '' ] |
53
|
|
|
|
|
|
|
, [ 'IncludeWatchCount', 'xs:boolean', '', '', '' ] |
54
|
|
|
|
|
|
|
, [ 'ItemID', 'ns:ItemIDType', '' |
55
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType', '1' ] |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
my @gaAttributes = ( |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 Subroutines: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub new { |
68
|
|
|
|
|
|
|
my $classname = shift; |
69
|
|
|
|
|
|
|
my %args = @_; |
70
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
71
|
|
|
|
|
|
|
return $self; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub isScalar { |
75
|
|
|
|
|
|
|
return 0; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 setIncludeCrossPromotion() |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Specifies whether or not to include cross-promotion information for |
83
|
|
|
|
|
|
|
the item in the call response. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
With a request version of 485 or higher, the default is false (do not |
86
|
|
|
|
|
|
|
include cross-promotion details). Set to true to retrieve cross-promotion |
87
|
|
|
|
|
|
|
information for the item. Cross-promotion information is returned in |
88
|
|
|
|
|
|
|
Item.CrossPromotion.PromotedItem.PromotionDetails. |
89
|
|
|
|
|
|
|
A promoted item will now contain multiple PromotionDetails containers. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
With a request version lower than 485, the default is true (include |
92
|
|
|
|
|
|
|
cross-promotions). Set the value to false if you do not want to retrieve |
93
|
|
|
|
|
|
|
cross-promotion information. Cross-promotion information, PromotedPrice |
94
|
|
|
|
|
|
|
and PromotedPriceType, are returned in Item.CrossPromotion.PromotedItem. |
95
|
|
|
|
|
|
|
If a promoted item has multiple PromotedPriceType and PromotedPrice value |
96
|
|
|
|
|
|
|
pairs, only the last pair is returned. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
RequiredInput: No |
99
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
sub setIncludeCrossPromotion { |
104
|
|
|
|
|
|
|
my $self = shift; |
105
|
|
|
|
|
|
|
$self->{'IncludeCrossPromotion'} = shift |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 isIncludeCrossPromotion() |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
sub isIncludeCrossPromotion { |
115
|
|
|
|
|
|
|
my $self = shift; |
116
|
|
|
|
|
|
|
return $self->{'IncludeCrossPromotion'}; |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 setIncludeItemSpecifics() |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
If true, the response returns the ItemSpecifics node |
123
|
|
|
|
|
|
|
(if the listing has custom Item Specifics). |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Item Specifics are well-known aspects of items in a given |
126
|
|
|
|
|
|
|
category. For example, items in a washer and dryer category |
127
|
|
|
|
|
|
|
might have an aspect like Type=Top-Loading; whereas |
128
|
|
|
|
|
|
|
items in a jewelry category might have an aspect like |
129
|
|
|
|
|
|
|
Gemstone=Amber. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
(This does not cause the response to include ID-based |
132
|
|
|
|
|
|
|
attributes. To also retrieve ID-based attributes, |
133
|
|
|
|
|
|
|
pass DetailLevel in the request with the value |
134
|
|
|
|
|
|
|
ItemReturnAttributes or ReturnAll.) |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
RequiredInput: No |
137
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ItemSpecifics, Title: Working with Custom Item Specifics |
138
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=cut |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
sub setIncludeItemSpecifics { |
143
|
|
|
|
|
|
|
my $self = shift; |
144
|
|
|
|
|
|
|
$self->{'IncludeItemSpecifics'} = shift |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=head2 isIncludeItemSpecifics() |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=cut |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub isIncludeItemSpecifics { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
return $self->{'IncludeItemSpecifics'}; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head2 setIncludeTaxTable() |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
If true, an associated tax table is returned in the response. |
162
|
|
|
|
|
|
|
If no tax table is associated with the item, then no |
163
|
|
|
|
|
|
|
tax table is returned, even if IncludeTaxTable is set to true. |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
RequiredInput: No |
166
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=cut |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
sub setIncludeTaxTable { |
171
|
|
|
|
|
|
|
my $self = shift; |
172
|
|
|
|
|
|
|
$self->{'IncludeTaxTable'} = shift |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 isIncludeTaxTable() |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=cut |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
sub isIncludeTaxTable { |
182
|
|
|
|
|
|
|
my $self = shift; |
183
|
|
|
|
|
|
|
return $self->{'IncludeTaxTable'}; |
184
|
|
|
|
|
|
|
} |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=head2 setIncludeWatchCount() |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
Indicates if the caller wants to include watch count for that item in the |
190
|
|
|
|
|
|
|
response. You must be the seller of the item to retrieve the watch count. |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
RequiredInput: No |
193
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=cut |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
sub setIncludeWatchCount { |
198
|
|
|
|
|
|
|
my $self = shift; |
199
|
|
|
|
|
|
|
$self->{'IncludeWatchCount'} = shift |
200
|
|
|
|
|
|
|
} |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 isIncludeWatchCount() |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=cut |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
sub isIncludeWatchCount { |
209
|
|
|
|
|
|
|
my $self = shift; |
210
|
|
|
|
|
|
|
return $self->{'IncludeWatchCount'}; |
211
|
|
|
|
|
|
|
} |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=head2 setItemID() |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
Specifies the item ID that uniquely identifies the item listing for which |
217
|
|
|
|
|
|
|
to retrieve the data. ItemID is a required input. |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
RequiredInput: Yes |
222
|
|
|
|
|
|
|
# Argument: 'ns:ItemIDType' |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=cut |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
sub setItemID { |
227
|
|
|
|
|
|
|
my $self = shift; |
228
|
|
|
|
|
|
|
$self->{'ItemID'} = shift |
229
|
|
|
|
|
|
|
} |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 getItemID() |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
# Returns: 'ns:ItemIDType' |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
=cut |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
sub getItemID { |
238
|
|
|
|
|
|
|
my $self = shift; |
239
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ItemID' |
240
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType'); |
241
|
|
|
|
|
|
|
} |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
## Attribute and Property lists |
248
|
|
|
|
|
|
|
sub getPropertiesList { |
249
|
|
|
|
|
|
|
my $self = shift; |
250
|
|
|
|
|
|
|
return \@gaProperties; |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
sub getAttributesList { |
254
|
|
|
|
|
|
|
my $self = shift; |
255
|
|
|
|
|
|
|
return \@gaAttributes; |
256
|
|
|
|
|
|
|
} |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
1; |