line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetCategories; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2424
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. GetCategories.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::GetCategories |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::GetCategories inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::BaseCall; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetCategories::GetCategoriesRequestType; |
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetCategories::GetCategoriesResponseType; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
49
|
|
|
|
|
|
|
return 'GetCategories'; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetCategories::GetCategoriesRequestType'; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetCategories::GetCategoriesResponseType'; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
59
|
|
|
|
|
|
|
# input properties |
60
|
|
|
|
|
|
|
# |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setCategoryParent() |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Specifies the ID of the highest-level category to return, |
65
|
|
|
|
|
|
|
along with its subcategories. |
66
|
|
|
|
|
|
|
If no parent category is specified, all categories are |
67
|
|
|
|
|
|
|
returned for the specified site. (Please do not pass a value of 0; zero (0) is an invalid value for CategoryParent.) |
68
|
|
|
|
|
|
|
To determine available category IDs, call GetCategories with |
69
|
|
|
|
|
|
|
no filters and use a DetailLevel value of ReturnAll. |
70
|
|
|
|
|
|
|
If you specify multiple parent categories, the hierarchy for |
71
|
|
|
|
|
|
|
each one is returned. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
RequiredInput: No |
74
|
|
|
|
|
|
|
Default: |
75
|
|
|
|
|
|
|
# Argument: reference to an array |
76
|
|
|
|
|
|
|
of 'xs:string' |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
sub setCategoryParent { |
81
|
|
|
|
|
|
|
my $self = shift; |
82
|
|
|
|
|
|
|
my $sCategoryParent = shift; |
83
|
|
|
|
|
|
|
$self->getRequestDataType()->setCategoryParent($sCategoryParent); |
84
|
|
|
|
|
|
|
} |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 setCategorySiteID() |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Specifies the eBay site for which to retrieve the category |
89
|
|
|
|
|
|
|
hierarchy. |
90
|
|
|
|
|
|
|
Use the numeric site code (e.g., 77 for eBay Germany). |
91
|
|
|
|
|
|
|
Only necessary if you want to retrieve category data |
92
|
|
|
|
|
|
|
for a site other than the site to which you are |
93
|
|
|
|
|
|
|
submitting the request. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
RequiredInput: No |
96
|
|
|
|
|
|
|
Default: The site ID of the request |
97
|
|
|
|
|
|
|
# Argument: 'xs:string' |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=cut |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
sub setCategorySiteID { |
102
|
|
|
|
|
|
|
my $self = shift; |
103
|
|
|
|
|
|
|
my $sCategorySiteID = shift; |
104
|
|
|
|
|
|
|
$self->getRequestDataType()->setCategorySiteID($sCategorySiteID); |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 setLevelLimit() |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Specifies the maximum depth of the category hierarchy to retrieve, |
110
|
|
|
|
|
|
|
where the top-level categories (meta-categories) are at level 1. |
111
|
|
|
|
|
|
|
Retrieves all category nodes with a category level less than or |
112
|
|
|
|
|
|
|
equal to this value. |
113
|
|
|
|
|
|
|
If not specified, retrieves categories at all applicable levels. |
114
|
|
|
|
|
|
|
As with all calls, the actual data returned will vary depending |
115
|
|
|
|
|
|
|
on how you configure other fields in the request |
116
|
|
|
|
|
|
|
(including DetailLevel). |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
RequiredInput: No |
119
|
|
|
|
|
|
|
Default: 0 |
120
|
|
|
|
|
|
|
# Argument: 'xs:int' |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub setLevelLimit { |
125
|
|
|
|
|
|
|
my $self = shift; |
126
|
|
|
|
|
|
|
my $sLevelLimit = shift; |
127
|
|
|
|
|
|
|
$self->getRequestDataType()->setLevelLimit($sLevelLimit); |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head2 setViewAllNodes() |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
If false or omitted, retrieves only leaf categories. |
133
|
|
|
|
|
|
|
(You can only list in leaf categories.) |
134
|
|
|
|
|
|
|
If true, retrieves both leaf and internal (non-leaf) categories. |
135
|
|
|
|
|
|
|
As with all calls, the actual data returned will vary depending |
136
|
|
|
|
|
|
|
on how you configure other fields in the request. |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
RequiredInput: No |
139
|
|
|
|
|
|
|
Default: false |
140
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=cut |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
sub setViewAllNodes { |
145
|
|
|
|
|
|
|
my $self = shift; |
146
|
|
|
|
|
|
|
my $sViewAllNodes = shift; |
147
|
|
|
|
|
|
|
$self->getRequestDataType()->setViewAllNodes($sViewAllNodes); |
148
|
|
|
|
|
|
|
} |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# |
153
|
|
|
|
|
|
|
# output properties |
154
|
|
|
|
|
|
|
# |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 getCategoryArray() |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
List of the returned categories. The category array contains one CategoryType |
159
|
|
|
|
|
|
|
object for each returned category. Returns empty if no detail level is specified. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Returned: Always |
162
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
163
|
|
|
|
|
|
|
# Returns: 'ns:CategoryArrayType' |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=cut |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
sub getCategoryArray { |
168
|
|
|
|
|
|
|
my $self = shift; |
169
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCategoryArray(); |
170
|
|
|
|
|
|
|
} |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head2 getCategoryCount() |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
Indicates the number of categories returned (i.e., the number of CategoryType |
175
|
|
|
|
|
|
|
objects in CategoryArray). |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Returned: Always |
178
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
179
|
|
|
|
|
|
|
# Returns: 'xs:int' |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=cut |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub getCategoryCount { |
184
|
|
|
|
|
|
|
my $self = shift; |
185
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCategoryCount(); |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=head2 getCategoryVersion() |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
Indicates the version of the category hierarchy on the |
191
|
|
|
|
|
|
|
specified eBay site. |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
Returned: Always |
194
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll, none |
195
|
|
|
|
|
|
|
# Returns: 'xs:string' |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=cut |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
sub getCategoryVersion { |
200
|
|
|
|
|
|
|
my $self = shift; |
201
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCategoryVersion(); |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=head2 getMinimumReservePrice() |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Indicates the lowest possible reserve price allowed for any item |
207
|
|
|
|
|
|
|
listed in any category on the site. You can use the fields returned by GetCategoryFeatures to determine if a different Minimum Reserve Price is defined for the category you want to use. |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
Returned: Always |
210
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll, none |
211
|
|
|
|
|
|
|
# Returns: 'xs:double' |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=cut |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
sub getMinimumReservePrice { |
216
|
|
|
|
|
|
|
my $self = shift; |
217
|
|
|
|
|
|
|
return $self->getResponseDataType()->getMinimumReservePrice(); |
218
|
|
|
|
|
|
|
} |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=head2 isReduceReserveAllowed() |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
If true, ReduceReserveAllowed indicates that all categories on the |
223
|
|
|
|
|
|
|
site allow the seller to reduce an item's reserve price. |
224
|
|
|
|
|
|
|
If false, this field is not returned in the response and all categories on the site do not normally allow sellers to reduce an |
225
|
|
|
|
|
|
|
item's reserve price. |
226
|
|
|
|
|
|
|
The Category.ORRA (override reduce reserve price) field can override (or toggle) |
227
|
|
|
|
|
|
|
the reserve price reduction setting for a given category. |
228
|
|
|
|
|
|
|
For example, if ReduceReserveAllowed is false and Category.ORRA is true, |
229
|
|
|
|
|
|
|
the category overrides the site setting and supports reducing reserve prices. |
230
|
|
|
|
|
|
|
If ReduceReserveAllowed is true and Category.ORRA is true, the category |
231
|
|
|
|
|
|
|
overrides the site setting and does does not support reducing reserve prices. |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
Returned: Always |
234
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll, none |
235
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=cut |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
sub isReduceReserveAllowed { |
240
|
|
|
|
|
|
|
my $self = shift; |
241
|
|
|
|
|
|
|
return $self->getResponseDataType()->isReduceReserveAllowed(); |
242
|
|
|
|
|
|
|
} |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
=head2 isReservePriceAllowed() |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
If true, ReservePriceAllowed indicates that all categories on the |
247
|
|
|
|
|
|
|
site allow the seller to specify a reserve price for an item. |
248
|
|
|
|
|
|
|
If false, this field is not returned in the response and all categories on the site do not normally allow sellers to specify reserve prices. |
249
|
|
|
|
|
|
|
The Category.ORPA (override reserve price allowed) field can override (or toggle) |
250
|
|
|
|
|
|
|
the reserve price allowed setting for a given category. |
251
|
|
|
|
|
|
|
For example, if ReservePriceAllowed is false and Category.ORPA is true, |
252
|
|
|
|
|
|
|
the category overrides the site setting and supports reserve prices. |
253
|
|
|
|
|
|
|
If ReservePriceAllowed is true and Category.ORPA is true, the category |
254
|
|
|
|
|
|
|
overrides the site setting and does does not support reserve prices. |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
Returned: Always |
257
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll, none |
258
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=cut |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
sub isReservePriceAllowed { |
263
|
|
|
|
|
|
|
my $self = shift; |
264
|
|
|
|
|
|
|
return $self->getResponseDataType()->isReservePriceAllowed(); |
265
|
|
|
|
|
|
|
} |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head2 getUpdateTime() |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
Indicates the last date and time that eBay modified the category hierarchy for the |
270
|
|
|
|
|
|
|
specified eBay site. |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
Returned: Always |
273
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll, none |
274
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
=cut |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
sub getUpdateTime { |
279
|
|
|
|
|
|
|
my $self = shift; |
280
|
|
|
|
|
|
|
return $self->getResponseDataType()->getUpdateTime(); |
281
|
|
|
|
|
|
|
} |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
1; |