line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::AttributeSetType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1162
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. AttributeSetType.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::AttributeSetType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
A set of salient aspects or features that describe an item in a standardized way. |
25
|
|
|
|
|
|
|
Most commonly used in the Item Specifics section of a listing. |
26
|
|
|
|
|
|
|
See the Developer's Guide information on |
27
|
|
|
|
|
|
|
working with Item Specifics and Pre-filled Item Information. |
28
|
|
|
|
|
|
|
See the Developer's Guide for information about |
29
|
|
|
|
|
|
|
characteristics meta-data and how to determine when attributes are required. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 INHERITANCE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
eBay::API::XML::DataType::AttributeSetType inherits from the L class |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
1
|
|
|
1
|
|
43
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AttributeType; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Attribute', 'ns:AttributeType', '1' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AttributeType', '1' ] |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
my @gaAttributes = ( [ 'attributeSetID', 'xs:int', '', '', '' ] |
56
|
|
|
|
|
|
|
, [ 'attributeSetVersion', 'xs:string', '', '', '' ] |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 Subroutines: |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub new { |
65
|
|
|
|
|
|
|
my $classname = shift; |
66
|
|
|
|
|
|
|
my %args = @_; |
67
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
68
|
|
|
|
|
|
|
return $self; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub isScalar { |
72
|
|
|
|
|
|
|
return 0; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 setAttribute() |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
A salient aspect or feature of an item in a given category. |
80
|
|
|
|
|
|
|
Attributes are known as "Item Specifics" in the eBay Web site. |
81
|
|
|
|
|
|
|
Use attributes to describe an item in a standard way so that buyers can find it more easily. |
82
|
|
|
|
|
|
|
For example, "Publication Year" is a standard attribute for books. |
83
|
|
|
|
|
|
|
In item-listing requests, multiple attributes can be specified. |
84
|
|
|
|
|
|
|
Some categories (e.g., Tickets) always require certain attributes to be specified. |
85
|
|
|
|
|
|
|
Therefore, in item-listing requests you need to at least specify "editable" attributes |
86
|
|
|
|
|
|
|
(EditType 0 and EditType 2 attributes) if they are identified as required |
87
|
|
|
|
|
|
|
in the attribute meta-data. See the eBay Web Services guide for information |
88
|
|
|
|
|
|
|
about attrribute meta-data, how to determine the valid attributes for a category, |
89
|
|
|
|
|
|
|
and how to determine whether attributes are required. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
If you are revising or relisting an item, you don't need to pass in attributes |
92
|
|
|
|
|
|
|
that were already specified in the original listing. |
93
|
|
|
|
|
|
|
To remove an optional attribute, set all its value IDs to "-100". If the item has bids |
94
|
|
|
|
|
|
|
(or items have been sold) but there are more than 12 hours remaining until the listing ends, |
95
|
|
|
|
|
|
|
you can add Attribute nodes but you cannot remove or modify data in previously |
96
|
|
|
|
|
|
|
specified Attribute nodes. If the item has bids and the listing ends within 12 hours, |
97
|
|
|
|
|
|
|
you cannot add or remove Attribute nodes or modify the contents of previously |
98
|
|
|
|
|
|
|
specified Attribute nodes. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
For GetCategoryListings, this returns the item condition only (and it is |
101
|
|
|
|
|
|
|
only returned if IncludeCondition = true in the request). |
102
|
|
|
|
|
|
|
Not applicable to Half.com. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Calls: AddItem |
105
|
|
|
|
|
|
|
AddLiveAuctionItem |
106
|
|
|
|
|
|
|
GetItemRecommendations |
107
|
|
|
|
|
|
|
VerifyAddItem |
108
|
|
|
|
|
|
|
RequiredInput: Conditionally |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Calls: GetSearchResults |
111
|
|
|
|
|
|
|
RelistItem |
112
|
|
|
|
|
|
|
ReviseItem |
113
|
|
|
|
|
|
|
ReviseLiveAuctionItem |
114
|
|
|
|
|
|
|
RequiredInput: No |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
# Argument: reference to an array |
117
|
|
|
|
|
|
|
of 'ns:AttributeType' |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
sub setAttribute { |
122
|
|
|
|
|
|
|
my $self = shift; |
123
|
|
|
|
|
|
|
$self->{'Attribute'} = |
124
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
125
|
|
|
|
|
|
|
} |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=head2 getAttribute() |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Calls: GetCategoryListings |
130
|
|
|
|
|
|
|
GetItemRecommendations |
131
|
|
|
|
|
|
|
GetProducts |
132
|
|
|
|
|
|
|
Returned: Conditionally |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Calls: GetSearchResults |
135
|
|
|
|
|
|
|
Returned: Conditionally |
136
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnAttributes, ItemReturnCategories, ReturnAll |
137
|
|
|
|
|
|
|
GranularityLevel: Coarse |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Calls: GetItem |
141
|
|
|
|
|
|
|
Returned: Conditionally |
142
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ReturnAll |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
# Returns: reference to an array |
145
|
|
|
|
|
|
|
of 'ns:AttributeType' |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=cut |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
sub getAttribute { |
150
|
|
|
|
|
|
|
my $self = shift; |
151
|
|
|
|
|
|
|
return $self->_getDataTypeArray('Attribute'); |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head2 setAttributeSetID() |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Constant value that identifies the attribute set in a language-independent way. |
160
|
|
|
|
|
|
|
Unique across all eBay sites. Corresponds to a characteristics set ID. |
161
|
|
|
|
|
|
|
Call GetCategory2CS to determine valid characteristics set IDs. |
162
|
|
|
|
|
|
|
For GetCategoryListings, you can ignore this value. |
163
|
|
|
|
|
|
|
Not applicable to Half.com. |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Calls: AddItem |
166
|
|
|
|
|
|
|
AddLiveAuctionItem |
167
|
|
|
|
|
|
|
GetItemRecommendations |
168
|
|
|
|
|
|
|
VerifyAddItem |
169
|
|
|
|
|
|
|
RequiredInput: Conditionally |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
Calls: GetSearchResults |
172
|
|
|
|
|
|
|
RelistItem |
173
|
|
|
|
|
|
|
ReviseItem |
174
|
|
|
|
|
|
|
ReviseLiveAuctionItem |
175
|
|
|
|
|
|
|
RequiredInput: No |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
# Argument: 'xs:int' |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=cut |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
sub setAttributeSetID { |
182
|
|
|
|
|
|
|
my $self = shift; |
183
|
|
|
|
|
|
|
$self->{'attributeSetID'} = shift |
184
|
|
|
|
|
|
|
} |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head2 getAttributeSetID() |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
Calls: GetCategoryListings |
189
|
|
|
|
|
|
|
GetItemRecommendations |
190
|
|
|
|
|
|
|
GetProducts |
191
|
|
|
|
|
|
|
Returned: Conditionally |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
Calls: GetSearchResults |
194
|
|
|
|
|
|
|
Returned: Conditionally |
195
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnAttributes, ItemReturnCategories, ReturnAll |
196
|
|
|
|
|
|
|
GranularityLevel: Coarse |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
Calls: GetItem |
200
|
|
|
|
|
|
|
Returned: Conditionally |
201
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ReturnAll |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
# Returns: 'xs:int' |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=cut |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
sub getAttributeSetID { |
208
|
|
|
|
|
|
|
my $self = shift; |
209
|
|
|
|
|
|
|
return $self->{'attributeSetID'}; |
210
|
|
|
|
|
|
|
} |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=head2 setAttributeSetVersion() |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
Version of the attribute set being specified (in requests) or that is |
216
|
|
|
|
|
|
|
currently on the site. This value changes each time changes are made to the |
217
|
|
|
|
|
|
|
category-to-characteristic set mappings or characteristic set data. |
218
|
|
|
|
|
|
|
The current version value is not necessarily greater than the previous |
219
|
|
|
|
|
|
|
value. Therefore, when comparing versions, only compare whether the |
220
|
|
|
|
|
|
|
value has changed.
|
221
|
|
|
|
|
|
|
In listing requests, if you do not specify this value, eBay assumes you are |
222
|
|
|
|
|
|
|
using the current attribute set version. If you specify the version number of |
223
|
|
|
|
|
|
|
the attribute meta-data that you have stored locally, eBay will compare it to |
224
|
|
|
|
|
|
|
the current version on the site and return a warning if the versions do not match. |
225
|
|
|
|
|
|
|
If an error occurs due to invalid attribute data, this warning can be useful to help you |
226
|
|
|
|
|
|
|
determine if you might be sending outdated data. |
227
|
|
|
|
|
|
|
Not applicable to Half.com. |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
Calls: AddItem |
230
|
|
|
|
|
|
|
AddLiveAuctionItem |
231
|
|
|
|
|
|
|
GetItemRecommendations |
232
|
|
|
|
|
|
|
VerifyAddItem |
233
|
|
|
|
|
|
|
RequiredInput: Conditionally |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
Calls: RelistItem |
236
|
|
|
|
|
|
|
ReviseItem |
237
|
|
|
|
|
|
|
ReviseLiveAuctionItem |
238
|
|
|
|
|
|
|
RequiredInput: No |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
# Argument: 'xs:string' |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
=cut |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
sub setAttributeSetVersion { |
245
|
|
|
|
|
|
|
my $self = shift; |
246
|
|
|
|
|
|
|
$self->{'attributeSetVersion'} = shift |
247
|
|
|
|
|
|
|
} |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
=head2 getAttributeSetVersion() |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
252
|
|
|
|
|
|
|
Returned: Conditionally |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
Calls: GetItem |
255
|
|
|
|
|
|
|
Returned: Conditionally |
256
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnAttributes, ReturnAll |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
# Returns: 'xs:string' |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=cut |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
sub getAttributeSetVersion { |
263
|
|
|
|
|
|
|
my $self = shift; |
264
|
|
|
|
|
|
|
return $self->{'attributeSetVersion'}; |
265
|
|
|
|
|
|
|
} |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
## Attribute and Property lists |
270
|
|
|
|
|
|
|
sub getPropertiesList { |
271
|
|
|
|
|
|
|
my $self = shift; |
272
|
|
|
|
|
|
|
return \@gaProperties; |
273
|
|
|
|
|
|
|
} |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
sub getAttributesList { |
276
|
|
|
|
|
|
|
my $self = shift; |
277
|
|
|
|
|
|
|
return \@gaAttributes; |
278
|
|
|
|
|
|
|
} |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
1; |