line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::BaseCallGen; |
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
2030
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
154
|
|
6
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
1277
|
|
|
4
|
|
|
|
|
128
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. BaseCallGen.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/25/2008 09:58 |
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::BaseCallGen |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::BaseCallGen inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
4
|
|
|
4
|
|
2151
|
use eBay::API::XML::BaseXml; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseXml"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 Subroutines: |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
# |
45
|
|
|
|
|
|
|
# INPUT properties (request) |
46
|
|
|
|
|
|
|
# |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 getRequestBotBlock() |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Container for a token and for user input. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# Returns: 'ns:BotBlockRequestType' |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub getRequestBotBlock { |
57
|
|
|
|
|
|
|
my $self = shift; |
58
|
|
|
|
|
|
|
return $self->getRequestDataType()->getBotBlock(); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
=head2 setRequestBotBlock() |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# Argument: 'ns:BotBlockRequestType' |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub setRequestBotBlock { |
67
|
|
|
|
|
|
|
my $self = shift; |
68
|
|
|
|
|
|
|
my $pBotBlock = shift; |
69
|
|
|
|
|
|
|
$self->getRequestDataType()->setBotBlock($pBotBlock); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 getDetailLevel() |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Detail levels are instructions that define standard subsets of |
75
|
|
|
|
|
|
|
data to return for particular data components (e.g., each |
76
|
|
|
|
|
|
|
Item, Transaction, or User) within the response payload. |
77
|
|
|
|
|
|
|
For example, a particular detail level might cause the |
78
|
|
|
|
|
|
|
response to include buyer-related data in every result |
79
|
|
|
|
|
|
|
(e.g., for every Item), but no seller-related data. |
80
|
|
|
|
|
|
|
Specifying a detail level is like using a |
81
|
|
|
|
|
|
|
predefined attribute list in the SELECT clause of an SQL query. |
82
|
|
|
|
|
|
|
Use the DetailLevel element to specify the required detail level |
83
|
|
|
|
|
|
|
that the client application needs pertaining to the data components |
84
|
|
|
|
|
|
|
that are applicable to the request. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The DetailLevelCodeType defines the |
87
|
|
|
|
|
|
|
global list of available detail levels for all request types. |
88
|
|
|
|
|
|
|
Most request types support certain detail |
89
|
|
|
|
|
|
|
levels or none at all. If you pass a detail level that exists |
90
|
|
|
|
|
|
|
in the schema but that isn't valid for a particular request, |
91
|
|
|
|
|
|
|
eBay ignores it processes the request without it. |
92
|
|
|
|
|
|
|
For each request type, see the detail level tables in the |
93
|
|
|
|
|
|
|
Input/Output Reference to determine which detail levels are |
94
|
|
|
|
|
|
|
applicable and which elements are returned for each applicable |
95
|
|
|
|
|
|
|
detail level. (Some detail level tables are still in the |
96
|
|
|
|
|
|
|
eBay Web Services guide. They will be moved to the |
97
|
|
|
|
|
|
|
Input/Output Reference in a future release.) |
98
|
|
|
|
|
|
|
Note that DetailLevel is required input for |
99
|
|
|
|
|
|
|
GetMyMessages. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
With GetSellerList and other calls that retrieve large data sets, |
102
|
|
|
|
|
|
|
please avoid using ReturnAll when possible. For example, if you use |
103
|
|
|
|
|
|
|
GetSellerList, use a GranularityLevel or use the |
104
|
|
|
|
|
|
|
GetSellerEvents call instead. If you do use ReturnAll with |
105
|
|
|
|
|
|
|
GetSellerList, use a small EntriesPerPage value and a short |
106
|
|
|
|
|
|
|
EndTimeFrom/EndTimeTo range for better performance. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
# Returns: reference to an array |
109
|
|
|
|
|
|
|
of 'ns:DetailLevelCodeType' |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=cut |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
sub getDetailLevel { |
114
|
|
|
|
|
|
|
my $self = shift; |
115
|
|
|
|
|
|
|
return $self->getRequestDataType()->getDetailLevel(); |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
=head2 setDetailLevel() |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# Argument: reference to an array |
120
|
|
|
|
|
|
|
of 'ns:DetailLevelCodeType' |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub setDetailLevel { |
125
|
|
|
|
|
|
|
my $self = shift; |
126
|
|
|
|
|
|
|
my $sDetailLevel = shift; |
127
|
|
|
|
|
|
|
$self->getRequestDataType()->setDetailLevel($sDetailLevel); |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head2 getEndUserIP() |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
The public IP address of the machine from which the request is sent. |
133
|
|
|
|
|
|
|
Your application captures that IP address and includes it in |
134
|
|
|
|
|
|
|
a call request. eBay evaluates requests for safety (also see |
135
|
|
|
|
|
|
|
the BotBlock container |
136
|
|
|
|
|
|
|
in the request and response of this call). |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
# Returns: 'xs:string' |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=cut |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
sub getEndUserIP { |
143
|
|
|
|
|
|
|
my $self = shift; |
144
|
|
|
|
|
|
|
return $self->getRequestDataType()->getEndUserIP(); |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
=head2 setEndUserIP() |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
# Argument: 'xs:string' |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub setEndUserIP { |
153
|
|
|
|
|
|
|
my $self = shift; |
154
|
|
|
|
|
|
|
my $sEndUserIP = shift; |
155
|
|
|
|
|
|
|
$self->getRequestDataType()->setEndUserIP($sEndUserIP); |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 getErrorHandling() |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Error tolerance level for the call. This is a preference |
161
|
|
|
|
|
|
|
that specifies how eBay should handle requests that contain |
162
|
|
|
|
|
|
|
invalid data or that could partially fail. This gives you some control |
163
|
|
|
|
|
|
|
over whether eBay returns warnings or blocking errors |
164
|
|
|
|
|
|
|
and how eBay processes the invalid data. |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
For AddItem and related calls, this field is only applicable when |
167
|
|
|
|
|
|
|
the listing includes Item Specifics and Pre-filled Item Information |
168
|
|
|
|
|
|
|
(such as AttributeSetArray and ProductListingDetails). |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
# Returns: 'ns:ErrorHandlingCodeType' |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=cut |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub getErrorHandling { |
175
|
|
|
|
|
|
|
my $self = shift; |
176
|
|
|
|
|
|
|
return $self->getRequestDataType()->getErrorHandling(); |
177
|
|
|
|
|
|
|
} |
178
|
|
|
|
|
|
|
=head2 setErrorHandling() |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
# Argument: 'ns:ErrorHandlingCodeType' |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=cut |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
sub setErrorHandling { |
185
|
|
|
|
|
|
|
my $self = shift; |
186
|
|
|
|
|
|
|
my $sErrorHandling = shift; |
187
|
|
|
|
|
|
|
$self->getRequestDataType()->setErrorHandling($sErrorHandling); |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head2 getErrorLanguage() |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Use ErrorLanguage to return error strings for the call in a different language |
193
|
|
|
|
|
|
|
from the language commonly associated with the site that the requesting user |
194
|
|
|
|
|
|
|
is registered with. Specify the standard RFC 3066 language identification tag |
195
|
|
|
|
|
|
|
(e.g., en_US). |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
ID--- country |
198
|
|
|
|
|
|
|
----- ----- |
199
|
|
|
|
|
|
|
de_AT Austria |
200
|
|
|
|
|
|
|
de_CH Switzerland |
201
|
|
|
|
|
|
|
de_DE Germany |
202
|
|
|
|
|
|
|
en_AU Australia |
203
|
|
|
|
|
|
|
en_CA Canada |
204
|
|
|
|
|
|
|
en_GB United Kingdom |
205
|
|
|
|
|
|
|
en_SG Singapore |
206
|
|
|
|
|
|
|
en_US United States |
207
|
|
|
|
|
|
|
es_ES Spain |
208
|
|
|
|
|
|
|
fr_BE Belgium (French) |
209
|
|
|
|
|
|
|
fr_CA Canada (French) |
210
|
|
|
|
|
|
|
fr_FR France |
211
|
|
|
|
|
|
|
it_IT Italy |
212
|
|
|
|
|
|
|
nl_BE Belgium (Dutch) |
213
|
|
|
|
|
|
|
nl_NL Netherlands |
214
|
|
|
|
|
|
|
zh_CN China |
215
|
|
|
|
|
|
|
en_IN India |
216
|
|
|
|
|
|
|
en_IE Ireland |
217
|
|
|
|
|
|
|
zh_HK Hong Kong |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
# Returns: 'xs:string' |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
=cut |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
sub getErrorLanguage { |
224
|
|
|
|
|
|
|
my $self = shift; |
225
|
|
|
|
|
|
|
return $self->getRequestDataType()->getErrorLanguage(); |
226
|
|
|
|
|
|
|
} |
227
|
|
|
|
|
|
|
=head2 setErrorLanguage() |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
# Argument: 'xs:string' |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=cut |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
sub setErrorLanguage { |
234
|
|
|
|
|
|
|
my $self = shift; |
235
|
|
|
|
|
|
|
my $sErrorLanguage = shift; |
236
|
|
|
|
|
|
|
$self->getRequestDataType()->setErrorLanguage($sErrorLanguage); |
237
|
|
|
|
|
|
|
} |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head2 getInvocationID() |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
A unique identifer for a particular call. If the same InvocationID is passed |
242
|
|
|
|
|
|
|
in after it has been passed in once on a call that succeeded for a particular |
243
|
|
|
|
|
|
|
application and user, then an error will be returned. The identifier can |
244
|
|
|
|
|
|
|
only contain digits from 0-9 and letters from A-F. The |
245
|
|
|
|
|
|
|
identifier must be 32 characters long. For example, |
246
|
|
|
|
|
|
|
1FB02B2-9D27-3acb-ABA2-9D539C374228. |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
# Returns: 'ns:UUIDType' |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
=cut |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
sub getInvocationID { |
253
|
|
|
|
|
|
|
my $self = shift; |
254
|
|
|
|
|
|
|
return $self->getRequestDataType()->getInvocationID(); |
255
|
|
|
|
|
|
|
} |
256
|
|
|
|
|
|
|
=head2 setInvocationID() |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
# Argument: 'ns:UUIDType' |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=cut |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
sub setInvocationID { |
263
|
|
|
|
|
|
|
my $self = shift; |
264
|
|
|
|
|
|
|
my $pInvocationID = shift; |
265
|
|
|
|
|
|
|
$self->getRequestDataType()->setInvocationID($pInvocationID); |
266
|
|
|
|
|
|
|
} |
267
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
=head2 getMessageID() |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
In most cases, all calls support a MessageID element in the request and a |
271
|
|
|
|
|
|
|
CorrelationID element in the response. If you pass a message ID in a request, |
272
|
|
|
|
|
|
|
we will return the same value in CorrelationID in the response. You can use |
273
|
|
|
|
|
|
|
this for tracking that a response is returned for every request and to match |
274
|
|
|
|
|
|
|
particular responses to particular requests. If you do not pass MessageID in |
275
|
|
|
|
|
|
|
the request, CorrelationID is not returned. |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
Note: |
278
|
|
|
|
|
|
|
GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, |
279
|
|
|
|
|
|
|
GetProductFinder, GetProductFinderXSL, and GetProductSearchPage |
280
|
|
|
|
|
|
|
are designed to retrieve very large sets of metadata |
281
|
|
|
|
|
|
|
that change once a day or less often. To improve performance, |
282
|
|
|
|
|
|
|
these calls return cached responses when you request all available data |
283
|
|
|
|
|
|
|
(with no filters). When this occurs, the MessageID and CorrelationID |
284
|
|
|
|
|
|
|
fields aren't applicable. |
285
|
|
|
|
|
|
|
However, if you specify an input filter to reduce the amount of data |
286
|
|
|
|
|
|
|
returned, the calls retrieve the latest data (not cached). |
287
|
|
|
|
|
|
|
When this occurs, MessageID and CorrelationID are applicable. |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
# Returns: 'xs:string' |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
=cut |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
sub getMessageID { |
295
|
|
|
|
|
|
|
my $self = shift; |
296
|
|
|
|
|
|
|
return $self->getRequestDataType()->getMessageID(); |
297
|
|
|
|
|
|
|
} |
298
|
|
|
|
|
|
|
=head2 setMessageID() |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
# Argument: 'xs:string' |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
=cut |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
sub setMessageID { |
305
|
|
|
|
|
|
|
my $self = shift; |
306
|
|
|
|
|
|
|
my $sMessageID = shift; |
307
|
|
|
|
|
|
|
$self->getRequestDataType()->setMessageID($sMessageID); |
308
|
|
|
|
|
|
|
} |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
=head2 getOutputSelector() |
311
|
|
|
|
|
|
|
|
312
|
|
|
|
|
|
|
You can use the OutputSelector field to restrict the data returned by this call. |
313
|
|
|
|
|
|
|
When you make a call such as GetItem that retrieves data from eBay, |
314
|
|
|
|
|
|
|
the OutputSelector field is useful for restricting the data returned. |
315
|
|
|
|
|
|
|
This field makes the call response easier to use, especially when a large payload |
316
|
|
|
|
|
|
|
would be returned. If you use the OutputSelector field, the output data |
317
|
|
|
|
|
|
|
will include only the fields you specified in the request. |
318
|
|
|
|
|
|
|
For example, if you are using GetItem and you want the item data |
319
|
|
|
|
|
|
|
in the response to be restricted to the ViewItemURL |
320
|
|
|
|
|
|
|
(the URL where a user can view the listing) and BuyItNowPrice, then |
321
|
|
|
|
|
|
|
within the GetItem request, specify those output fields. |
322
|
|
|
|
|
|
|
To use this field, see the information at the following link. |
323
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
# Returns: reference to an array |
325
|
|
|
|
|
|
|
of 'xs:string' |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
=cut |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
sub getOutputSelector { |
330
|
|
|
|
|
|
|
my $self = shift; |
331
|
|
|
|
|
|
|
return $self->getRequestDataType()->getOutputSelector(); |
332
|
|
|
|
|
|
|
} |
333
|
|
|
|
|
|
|
=head2 setOutputSelector() |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
# Argument: reference to an array |
336
|
|
|
|
|
|
|
of 'xs:string' |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
=cut |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
sub setOutputSelector { |
341
|
|
|
|
|
|
|
my $self = shift; |
342
|
|
|
|
|
|
|
my $sOutputSelector = shift; |
343
|
|
|
|
|
|
|
$self->getRequestDataType()->setOutputSelector($sOutputSelector); |
344
|
|
|
|
|
|
|
} |
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
=head2 getRequesterCredentials() |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
Authentication information for the user on whose behalf the application is |
349
|
|
|
|
|
|
|
making the request. Only registered eBay users are allowed to make API calls. To |
350
|
|
|
|
|
|
|
verify that a user is registered, your application needs to pass a user-specific |
351
|
|
|
|
|
|
|
value called an "authentication token" in the request. This is equivalent to |
352
|
|
|
|
|
|
|
signing in on the eBay Web site. As API calls do not pass session information, |
353
|
|
|
|
|
|
|
you need to pass the user's authentication token every time you invoke a call on |
354
|
|
|
|
|
|
|
their behalf. All calls require an authentication token, except the calls you |
355
|
|
|
|
|
|
|
use to retrieve a token in the first place. (For such calls, you use the eBay |
356
|
|
|
|
|
|
|
member's username and password instead.) |
357
|
|
|
|
|
|
|
|
358
|
|
|
|
|
|
|
# Returns: 'ns:XMLRequesterCredentialsType' |
359
|
|
|
|
|
|
|
|
360
|
|
|
|
|
|
|
=cut |
361
|
|
|
|
|
|
|
|
362
|
|
|
|
|
|
|
sub getRequesterCredentials { |
363
|
|
|
|
|
|
|
my $self = shift; |
364
|
|
|
|
|
|
|
return $self->getRequestDataType()->getRequesterCredentials(); |
365
|
|
|
|
|
|
|
} |
366
|
|
|
|
|
|
|
=head2 setRequesterCredentials() |
367
|
|
|
|
|
|
|
|
368
|
|
|
|
|
|
|
# Argument: 'ns:XMLRequesterCredentialsType' |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
=cut |
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
sub setRequesterCredentials { |
373
|
|
|
|
|
|
|
my $self = shift; |
374
|
|
|
|
|
|
|
my $pRequesterCredentials = shift; |
375
|
|
|
|
|
|
|
$self->getRequestDataType()->setRequesterCredentials($pRequesterCredentials); |
376
|
|
|
|
|
|
|
} |
377
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
=head2 getRequestVersion() |
379
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
The version number of the API code that you are |
381
|
|
|
|
|
|
|
programming against (e.g., 549). |
382
|
|
|
|
|
|
|
The version you specify for a call has these basic effects: |
383
|
|
|
|
|
|
|
- It indicates the version of the code lists and other |
384
|
|
|
|
|
|
|
data that eBay should use to process your request. |
385
|
|
|
|
|
|
|
- It indicates the schema version you are using. |
386
|
|
|
|
|
|
|
You need to use a version that is greater than or equal to the |
387
|
|
|
|
|
|
|
lowest supported version. |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
For the SOAP API: If you are using the SOAP API, |
390
|
|
|
|
|
|
|
this field is required. Specify the version of the WSDL your |
391
|
|
|
|
|
|
|
application is using. |
392
|
|
|
|
|
|
|
|
393
|
|
|
|
|
|
|
For the XML API: If you are using the XML API, |
394
|
|
|
|
|
|
|
this field has no effect. Instead, specify the version in the |
395
|
|
|
|
|
|
|
X-EBAY-API-COMPATIBILITY-LEVEL HTTP header. |
396
|
|
|
|
|
|
|
(If you specify Version in the body of an XML API request and it |
397
|
|
|
|
|
|
|
is different from the value in the HTTP header, eBay returns an |
398
|
|
|
|
|
|
|
informational warning that the value in the HTTP header was used |
399
|
|
|
|
|
|
|
instead.) |
400
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
# Returns: 'xs:string' |
402
|
|
|
|
|
|
|
|
403
|
|
|
|
|
|
|
=cut |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
sub getRequestVersion { |
406
|
|
|
|
|
|
|
my $self = shift; |
407
|
|
|
|
|
|
|
return $self->getRequestDataType()->getVersion(); |
408
|
|
|
|
|
|
|
} |
409
|
|
|
|
|
|
|
=head2 setRequestVersion() |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
# Argument: 'xs:string' |
412
|
|
|
|
|
|
|
|
413
|
|
|
|
|
|
|
=cut |
414
|
|
|
|
|
|
|
|
415
|
|
|
|
|
|
|
sub setRequestVersion { |
416
|
|
|
|
|
|
|
my $self = shift; |
417
|
|
|
|
|
|
|
my $sVersion = shift; |
418
|
|
|
|
|
|
|
$self->getRequestDataType()->setVersion($sVersion); |
419
|
|
|
|
|
|
|
} |
420
|
|
|
|
|
|
|
|
421
|
|
|
|
|
|
|
=head2 getWarningLevel() |
422
|
|
|
|
|
|
|
|
423
|
|
|
|
|
|
|
Controls whether or not to return warnings when the application passes |
424
|
|
|
|
|
|
|
unrecognized or deprecated elements in a request. |
425
|
|
|
|
|
|
|
|
426
|
|
|
|
|
|
|
An unrecognized element is one that is not defined in any supported |
427
|
|
|
|
|
|
|
version of the schema. Schema element names are case-sensitive, |
428
|
|
|
|
|
|
|
so using WarningLevel can also help you remove any potential hidden |
429
|
|
|
|
|
|
|
bugs within your application due to incorrect case or spelling in |
430
|
|
|
|
|
|
|
field names before you put your application into the |
431
|
|
|
|
|
|
|
Production environment. |
432
|
|
|
|
|
|
|
|
433
|
|
|
|
|
|
|
WarningLevel only validates elements; it doesn't validate |
434
|
|
|
|
|
|
|
XML attributes. It also doesn't control warnings related to |
435
|
|
|
|
|
|
|
user-entered strings or numbers, or warnings for |
436
|
|
|
|
|
|
|
logical errors. |
437
|
|
|
|
|
|
|
|
438
|
|
|
|
|
|
|
We recommend that you only use this during development and debugging. |
439
|
|
|
|
|
|
|
Do not use this in requests in your production code. |
440
|
|
|
|
|
|
|
|
441
|
|
|
|
|
|
|
# Returns: 'ns:WarningLevelCodeType' |
442
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
=cut |
444
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
sub getWarningLevel { |
446
|
|
|
|
|
|
|
my $self = shift; |
447
|
|
|
|
|
|
|
return $self->getRequestDataType()->getWarningLevel(); |
448
|
|
|
|
|
|
|
} |
449
|
|
|
|
|
|
|
=head2 setWarningLevel() |
450
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
# Argument: 'ns:WarningLevelCodeType' |
452
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
=cut |
454
|
|
|
|
|
|
|
|
455
|
|
|
|
|
|
|
sub setWarningLevel { |
456
|
|
|
|
|
|
|
my $self = shift; |
457
|
|
|
|
|
|
|
my $sWarningLevel = shift; |
458
|
|
|
|
|
|
|
$self->getRequestDataType()->setWarningLevel($sWarningLevel); |
459
|
|
|
|
|
|
|
} |
460
|
|
|
|
|
|
|
|
461
|
|
|
|
|
|
|
|
462
|
|
|
|
|
|
|
|
463
|
|
|
|
|
|
|
# |
464
|
|
|
|
|
|
|
# OUTPUT properties (response) |
465
|
|
|
|
|
|
|
# |
466
|
|
|
|
|
|
|
|
467
|
|
|
|
|
|
|
=head2 getAck() |
468
|
|
|
|
|
|
|
|
469
|
|
|
|
|
|
|
A token representing the application-level acknowledgement code that indicates |
470
|
|
|
|
|
|
|
the response status (e.g., success). The AckCodeType list specifies |
471
|
|
|
|
|
|
|
the possible values for Ack. |
472
|
|
|
|
|
|
|
|
473
|
|
|
|
|
|
|
Returned: Always |
474
|
|
|
|
|
|
|
AllCallsExcept: CompleteSale, GetPopularKeywords |
475
|
|
|
|
|
|
|
AllValuesExcept: PartialFailure |
476
|
|
|
|
|
|
|
Returned: Always |
477
|
|
|
|
|
|
|
# Returns: 'ns:AckCodeType' |
478
|
|
|
|
|
|
|
|
479
|
|
|
|
|
|
|
=cut |
480
|
|
|
|
|
|
|
|
481
|
|
|
|
|
|
|
sub getAck { |
482
|
|
|
|
|
|
|
my $self = shift; |
483
|
|
|
|
|
|
|
return $self->getResponseDataType()->getAck(); |
484
|
|
|
|
|
|
|
} |
485
|
|
|
|
|
|
|
|
486
|
|
|
|
|
|
|
=head2 getResponseBotBlock() |
487
|
|
|
|
|
|
|
|
488
|
|
|
|
|
|
|
Container of token, image URL and audio URL. |
489
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
Returned: Conditionally |
491
|
|
|
|
|
|
|
# Returns: 'ns:BotBlockResponseType' |
492
|
|
|
|
|
|
|
|
493
|
|
|
|
|
|
|
=cut |
494
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
sub getResponseBotBlock { |
496
|
|
|
|
|
|
|
my $self = shift; |
497
|
|
|
|
|
|
|
return $self->getResponseDataType()->getBotBlock(); |
498
|
|
|
|
|
|
|
} |
499
|
|
|
|
|
|
|
|
500
|
|
|
|
|
|
|
=head2 getBuild() |
501
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
This refers to the specific software build that eBay used when processing the request |
503
|
|
|
|
|
|
|
and generating the response. This includes the version number plus additional |
504
|
|
|
|
|
|
|
information. eBay Developer Support may request the build information |
505
|
|
|
|
|
|
|
when helping you resolve technical issues. |
506
|
|
|
|
|
|
|
|
507
|
|
|
|
|
|
|
Returned: Always |
508
|
|
|
|
|
|
|
AllCalls: |
509
|
|
|
|
|
|
|
# Returns: 'xs:string' |
510
|
|
|
|
|
|
|
|
511
|
|
|
|
|
|
|
=cut |
512
|
|
|
|
|
|
|
|
513
|
|
|
|
|
|
|
sub getBuild { |
514
|
|
|
|
|
|
|
my $self = shift; |
515
|
|
|
|
|
|
|
return $self->getResponseDataType()->getBuild(); |
516
|
|
|
|
|
|
|
} |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
=head2 getCorrelationID() |
519
|
|
|
|
|
|
|
|
520
|
|
|
|
|
|
|
In most cases, all calls support a MessageID element in the request |
521
|
|
|
|
|
|
|
and a CorrelationID element in the response. If you pass a message |
522
|
|
|
|
|
|
|
ID in a request, we will return the same value in CorrelationID in |
523
|
|
|
|
|
|
|
the response. You can use this for tracking that a response is |
524
|
|
|
|
|
|
|
returned for every request and to match particular responses to |
525
|
|
|
|
|
|
|
particular requests. If you do not pass MessageID in the request, |
526
|
|
|
|
|
|
|
CorrelationID is not returned. |
527
|
|
|
|
|
|
|
|
528
|
|
|
|
|
|
|
Note: |
529
|
|
|
|
|
|
|
GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, |
530
|
|
|
|
|
|
|
GetProductFinder, GetProductFinderXSL, and GetProductSearchPage |
531
|
|
|
|
|
|
|
are designed to retrieve very large sets of metadata |
532
|
|
|
|
|
|
|
that change once a day or less often. To improve performance, |
533
|
|
|
|
|
|
|
these calls return cached responses when you request all available data |
534
|
|
|
|
|
|
|
(with no filters). When this occurs, the MessageID and CorrelationID |
535
|
|
|
|
|
|
|
fields aren't applicable. |
536
|
|
|
|
|
|
|
However, if you specify an input filter to reduce the amount of data |
537
|
|
|
|
|
|
|
returned, the calls retrieve the latest data (not cached). |
538
|
|
|
|
|
|
|
When this occurs, MessageID and CorrelationID are applicable. |
539
|
|
|
|
|
|
|
|
540
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
Returned: Conditionally |
542
|
|
|
|
|
|
|
AllCalls: |
543
|
|
|
|
|
|
|
# Returns: 'xs:string' |
544
|
|
|
|
|
|
|
|
545
|
|
|
|
|
|
|
=cut |
546
|
|
|
|
|
|
|
|
547
|
|
|
|
|
|
|
sub getCorrelationID { |
548
|
|
|
|
|
|
|
my $self = shift; |
549
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCorrelationID(); |
550
|
|
|
|
|
|
|
} |
551
|
|
|
|
|
|
|
|
552
|
|
|
|
|
|
|
=head2 getDuplicateInvocationDetails() |
553
|
|
|
|
|
|
|
|
554
|
|
|
|
|
|
|
Information that explains a failure due to a duplicate InvocationID being |
555
|
|
|
|
|
|
|
passed in. |
556
|
|
|
|
|
|
|
|
557
|
|
|
|
|
|
|
Returned: Conditionally |
558
|
|
|
|
|
|
|
# Returns: 'ns:DuplicateInvocationDetailsType' |
559
|
|
|
|
|
|
|
|
560
|
|
|
|
|
|
|
=cut |
561
|
|
|
|
|
|
|
|
562
|
|
|
|
|
|
|
sub getDuplicateInvocationDetails { |
563
|
|
|
|
|
|
|
my $self = shift; |
564
|
|
|
|
|
|
|
return $self->getResponseDataType()->getDuplicateInvocationDetails(); |
565
|
|
|
|
|
|
|
} |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
=head2 getEIASToken() |
568
|
|
|
|
|
|
|
|
569
|
|
|
|
|
|
|
Unique Identifier of Recipient user ID of the notification. Only returned by |
570
|
|
|
|
|
|
|
Platform Notifications (not for regular API call responses). |
571
|
|
|
|
|
|
|
|
572
|
|
|
|
|
|
|
# Returns: 'xs:string' |
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
=cut |
575
|
|
|
|
|
|
|
|
576
|
|
|
|
|
|
|
sub getEIASToken { |
577
|
|
|
|
|
|
|
my $self = shift; |
578
|
|
|
|
|
|
|
return $self->getResponseDataType()->getEIASToken(); |
579
|
|
|
|
|
|
|
} |
580
|
|
|
|
|
|
|
|
581
|
|
|
|
|
|
|
=head2 getErrors() |
582
|
|
|
|
|
|
|
|
583
|
|
|
|
|
|
|
A list of application-level errors (if any) that occurred when eBay |
584
|
|
|
|
|
|
|
processed the request. |
585
|
|
|
|
|
|
|
|
586
|
|
|
|
|
|
|
Returned: Conditionally |
587
|
|
|
|
|
|
|
AllCalls: |
588
|
|
|
|
|
|
|
# Returns: reference to an array |
589
|
|
|
|
|
|
|
of 'ns:ErrorType' |
590
|
|
|
|
|
|
|
|
591
|
|
|
|
|
|
|
=cut |
592
|
|
|
|
|
|
|
|
593
|
|
|
|
|
|
|
sub getErrors { |
594
|
|
|
|
|
|
|
my $self = shift; |
595
|
|
|
|
|
|
|
return $self->getResponseDataType()->getErrors(); |
596
|
|
|
|
|
|
|
} |
597
|
|
|
|
|
|
|
|
598
|
|
|
|
|
|
|
=head2 getHardExpirationWarning() |
599
|
|
|
|
|
|
|
|
600
|
|
|
|
|
|
|
Expiration date of the user's authentication token. Only returned |
601
|
|
|
|
|
|
|
within the 7-day period prior to a token's expiration. To ensure |
602
|
|
|
|
|
|
|
that user authentication tokens are secure and to help avoid a |
603
|
|
|
|
|
|
|
user's token being compromised, tokens have a limited life span. A |
604
|
|
|
|
|
|
|
token is only valid for a period of time (set by eBay). After this |
605
|
|
|
|
|
|
|
amount of time has passed, the token expires and must be replaced |
606
|
|
|
|
|
|
|
with a new token. |
607
|
|
|
|
|
|
|
|
608
|
|
|
|
|
|
|
Returned: Conditionally |
609
|
|
|
|
|
|
|
AllCallsExcept: FetchToken |
610
|
|
|
|
|
|
|
# Returns: 'xs:string' |
611
|
|
|
|
|
|
|
|
612
|
|
|
|
|
|
|
=cut |
613
|
|
|
|
|
|
|
|
614
|
|
|
|
|
|
|
sub getHardExpirationWarning { |
615
|
|
|
|
|
|
|
my $self = shift; |
616
|
|
|
|
|
|
|
return $self->getResponseDataType()->getHardExpirationWarning(); |
617
|
|
|
|
|
|
|
} |
618
|
|
|
|
|
|
|
|
619
|
|
|
|
|
|
|
=head2 getMessage() |
620
|
|
|
|
|
|
|
|
621
|
|
|
|
|
|
|
Supplemental information from eBay, if applicable. May elaborate on errors or |
622
|
|
|
|
|
|
|
provide useful hints for the seller. This data can accompany the call's normal |
623
|
|
|
|
|
|
|
data result set or a result set that contains only errors. The string can |
624
|
|
|
|
|
|
|
return HTML, including TABLE, IMG, and HREF elements. In this case, an HTML- |
625
|
|
|
|
|
|
|
based application should be able to include the HTML as-is in the HTML page |
626
|
|
|
|
|
|
|
that displays the results. A non-HTML application would need to parse the HTML |
627
|
|
|
|
|
|
|
and convert the table elements and image references into UI elements |
628
|
|
|
|
|
|
|
particular to the programming language used. Because this data is returned as |
629
|
|
|
|
|
|
|
a string, the HTML markup elements are escaped with character entity |
630
|
|
|
|
|
|
|
references (e.g.,<table><tr>...). See the |
631
|
|
|
|
|
|
|
appendices in the eBay Web Services guide for general information about string |
632
|
|
|
|
|
|
|
data types. |
633
|
|
|
|
|
|
|
|
634
|
|
|
|
|
|
|
Returned: Conditionally |
635
|
|
|
|
|
|
|
# Returns: 'xs:string' |
636
|
|
|
|
|
|
|
|
637
|
|
|
|
|
|
|
=cut |
638
|
|
|
|
|
|
|
|
639
|
|
|
|
|
|
|
sub getMessage { |
640
|
|
|
|
|
|
|
my $self = shift; |
641
|
|
|
|
|
|
|
return $self->getResponseDataType()->getMessage(); |
642
|
|
|
|
|
|
|
} |
643
|
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
=head2 getNotificationEventName() |
645
|
|
|
|
|
|
|
|
646
|
|
|
|
|
|
|
Event name of the notification. Only returned by Platform Notifications. |
647
|
|
|
|
|
|
|
|
648
|
|
|
|
|
|
|
# Returns: 'xs:string' |
649
|
|
|
|
|
|
|
|
650
|
|
|
|
|
|
|
=cut |
651
|
|
|
|
|
|
|
|
652
|
|
|
|
|
|
|
sub getNotificationEventName { |
653
|
|
|
|
|
|
|
my $self = shift; |
654
|
|
|
|
|
|
|
return $self->getResponseDataType()->getNotificationEventName(); |
655
|
|
|
|
|
|
|
} |
656
|
|
|
|
|
|
|
|
657
|
|
|
|
|
|
|
=head2 getNotificationSignature() |
658
|
|
|
|
|
|
|
|
659
|
|
|
|
|
|
|
A Base64-encoded MD5 hash that allows the recipient of a Platform |
660
|
|
|
|
|
|
|
Notification to verify this is a valid Platform Notification sent by |
661
|
|
|
|
|
|
|
eBay. |
662
|
|
|
|
|
|
|
|
663
|
|
|
|
|
|
|
# Returns: 'xs:string' |
664
|
|
|
|
|
|
|
|
665
|
|
|
|
|
|
|
=cut |
666
|
|
|
|
|
|
|
|
667
|
|
|
|
|
|
|
sub getNotificationSignature { |
668
|
|
|
|
|
|
|
my $self = shift; |
669
|
|
|
|
|
|
|
return $self->getResponseDataType()->getNotificationSignature(); |
670
|
|
|
|
|
|
|
} |
671
|
|
|
|
|
|
|
|
672
|
|
|
|
|
|
|
=head2 getRecipientUserID() |
673
|
|
|
|
|
|
|
|
674
|
|
|
|
|
|
|
Recipient user ID of the notification. Only returned by Platform Notifications. |
675
|
|
|
|
|
|
|
|
676
|
|
|
|
|
|
|
# Returns: 'xs:string' |
677
|
|
|
|
|
|
|
|
678
|
|
|
|
|
|
|
=cut |
679
|
|
|
|
|
|
|
|
680
|
|
|
|
|
|
|
sub getRecipientUserID { |
681
|
|
|
|
|
|
|
my $self = shift; |
682
|
|
|
|
|
|
|
return $self->getResponseDataType()->getRecipientUserID(); |
683
|
|
|
|
|
|
|
} |
684
|
|
|
|
|
|
|
|
685
|
|
|
|
|
|
|
=head2 getTimestamp() |
686
|
|
|
|
|
|
|
|
687
|
|
|
|
|
|
|
This value represents the date and time when eBay processed the |
688
|
|
|
|
|
|
|
request. The time zone of this value is GMT and the format is the |
689
|
|
|
|
|
|
|
ISO 8601 date and time format (YYYY-MM-DDTHH:MM:SS.SSSZ). See Time |
690
|
|
|
|
|
|
|
Values in the eBay Web Services guide for information about this |
691
|
|
|
|
|
|
|
time format and converting to and from the GMT time zone. |
692
|
|
|
|
|
|
|
|
693
|
|
|
|
|
|
|
Note: |
694
|
|
|
|
|
|
|
GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, |
695
|
|
|
|
|
|
|
GetProductFinder, GetProductFinderXSL, and GetProductSearchPage |
696
|
|
|
|
|
|
|
are designed to retrieve very large sets of metadata |
697
|
|
|
|
|
|
|
that change once a day or less often. To improve performance, |
698
|
|
|
|
|
|
|
these calls return cached responses when you request all available data |
699
|
|
|
|
|
|
|
(with no filters). When this occurs, this time value reflects the |
700
|
|
|
|
|
|
|
time the cached response was created. Thus, this value is not |
701
|
|
|
|
|
|
|
necessarily when the request was processed. |
702
|
|
|
|
|
|
|
However, if you specify an input filter to reduce the amount of data |
703
|
|
|
|
|
|
|
returned, the calls retrieve the latest data (not cached). |
704
|
|
|
|
|
|
|
When this occurs, this time value does reflect when the request |
705
|
|
|
|
|
|
|
was processed. |
706
|
|
|
|
|
|
|
|
707
|
|
|
|
|
|
|
Returned: Always |
708
|
|
|
|
|
|
|
AllCalls: |
709
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
710
|
|
|
|
|
|
|
|
711
|
|
|
|
|
|
|
=cut |
712
|
|
|
|
|
|
|
|
713
|
|
|
|
|
|
|
sub getTimestamp { |
714
|
|
|
|
|
|
|
my $self = shift; |
715
|
|
|
|
|
|
|
return $self->getResponseDataType()->getTimestamp(); |
716
|
|
|
|
|
|
|
} |
717
|
|
|
|
|
|
|
|
718
|
|
|
|
|
|
|
=head2 getResponseVersion() |
719
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
The version of the response payload schema. Indicates the version of the |
721
|
|
|
|
|
|
|
schema that eBay used to process the request. |
722
|
|
|
|
|
|
|
See "Standard Data for All Calls" in the eBay Web Services Guide for information |
723
|
|
|
|
|
|
|
on using the response version when troubleshooting "CustomCode" values that appear |
724
|
|
|
|
|
|
|
in the response. |
725
|
|
|
|
|
|
|
|
726
|
|
|
|
|
|
|
Returned: Always |
727
|
|
|
|
|
|
|
AllCalls: |
728
|
|
|
|
|
|
|
# Returns: 'xs:string' |
729
|
|
|
|
|
|
|
|
730
|
|
|
|
|
|
|
=cut |
731
|
|
|
|
|
|
|
|
732
|
|
|
|
|
|
|
sub getResponseVersion { |
733
|
|
|
|
|
|
|
my $self = shift; |
734
|
|
|
|
|
|
|
return $self->getResponseDataType()->getVersion(); |
735
|
|
|
|
|
|
|
} |
736
|
|
|
|
|
|
|
|
737
|
|
|
|
|
|
|
|
738
|
|
|
|
|
|
|
|
739
|
|
|
|
|
|
|
|
740
|
|
|
|
|
|
|
|
741
|
|
|
|
|
|
|
1; |