line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::CartType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1104
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
23
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. CartType.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 07/07/2008 17:42 |
14
|
|
|
|
|
|
|
# API Release Number: ... 571 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::DataType::CartType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Details about an eBay Express shopping cart. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::CartType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
32
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AddressType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CartItemArrayType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CheckoutCompleteRedirectType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CheckoutOrderDetailType; |
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::OrderStatusCodeType; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my @gaProperties = ( [ 'CartID', 'xs:long', '', '', '' ] |
50
|
|
|
|
|
|
|
, [ 'CartItemArray', 'ns:CartItemArrayType', '' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CartItemArrayType', '1' ] |
52
|
|
|
|
|
|
|
, [ 'CartStatus', 'ns:OrderStatusCodeType', '' |
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::OrderStatusCodeType', '' ] |
54
|
|
|
|
|
|
|
, [ 'CheckoutCompleteRedirect', 'ns:CheckoutCompleteRedirectType', '' |
55
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutCompleteRedirectType', '1' ] |
56
|
|
|
|
|
|
|
, [ 'CheckoutURL', 'xs:anyURI', '', '', '' ] |
57
|
|
|
|
|
|
|
, [ 'CreationTime', 'xs:dateTime', '', '', '' ] |
58
|
|
|
|
|
|
|
, [ 'ExpirationTime', 'xs:dateTime', '', '', '' ] |
59
|
|
|
|
|
|
|
, [ 'OrderDetail', 'ns:CheckoutOrderDetailType', '' |
60
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutOrderDetailType', '1' ] |
61
|
|
|
|
|
|
|
, [ 'ShippingAddress', 'ns:AddressType', '' |
62
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType', '1' ] |
63
|
|
|
|
|
|
|
); |
64
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
my @gaAttributes = ( |
67
|
|
|
|
|
|
|
); |
68
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 Subroutines: |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub new { |
75
|
|
|
|
|
|
|
my $classname = shift; |
76
|
|
|
|
|
|
|
my %args = @_; |
77
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
78
|
|
|
|
|
|
|
return $self; |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
sub isScalar { |
82
|
|
|
|
|
|
|
return 0; |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 setCartID() |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
The ID of the shopping cart. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Default: |
92
|
|
|
|
|
|
|
# Argument: 'xs:long' |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub setCartID { |
97
|
|
|
|
|
|
|
my $self = shift; |
98
|
|
|
|
|
|
|
$self->{'CartID'} = shift |
99
|
|
|
|
|
|
|
} |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 getCartID() |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Calls: GetCart |
104
|
|
|
|
|
|
|
SetCart |
105
|
|
|
|
|
|
|
Returned: Always |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
# Returns: 'xs:long' |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=cut |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
sub getCartID { |
112
|
|
|
|
|
|
|
my $self = shift; |
113
|
|
|
|
|
|
|
return $self->{'CartID'}; |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head2 setCartItemArray() |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Array of CartItem (details about items and what is to be done with each, |
120
|
|
|
|
|
|
|
such as add, delete, update). This is only returned if there are items in the cart. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
# Argument: 'ns:CartItemArrayType' |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
sub setCartItemArray { |
127
|
|
|
|
|
|
|
my $self = shift; |
128
|
|
|
|
|
|
|
$self->{'CartItemArray'} = shift |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=head2 getCartItemArray() |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Calls: GetCart |
134
|
|
|
|
|
|
|
SetCart |
135
|
|
|
|
|
|
|
Returned: Conditionally |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
# Returns: 'ns:CartItemArrayType' |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=cut |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
sub getCartItemArray { |
142
|
|
|
|
|
|
|
my $self = shift; |
143
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'CartItemArray' |
144
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CartItemArrayType'); |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head2 setCartStatus() |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Status of the eBay Express cart. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# Argument: 'ns:OrderStatusCodeType' |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=cut |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
sub setCartStatus { |
157
|
|
|
|
|
|
|
my $self = shift; |
158
|
|
|
|
|
|
|
$self->{'CartStatus'} = shift |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head2 getCartStatus() |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Calls: GetCart |
164
|
|
|
|
|
|
|
SetCart |
165
|
|
|
|
|
|
|
Returned: Always |
166
|
|
|
|
|
|
|
OnlyTheseValues: |
167
|
|
|
|
|
|
|
Active, Authenticated, Cancelled, Completed, InProcess, Inactive |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
# Returns: 'ns:OrderStatusCodeType' |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=cut |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub getCartStatus { |
175
|
|
|
|
|
|
|
my $self = shift; |
176
|
|
|
|
|
|
|
return $self->{'CartStatus'}; |
177
|
|
|
|
|
|
|
} |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=head2 setCheckoutCompleteRedirect() |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
When the user has completed eBay Express checkout with the shopping cart, the |
183
|
|
|
|
|
|
|
user is shown a link to your website. The values of this element were established |
184
|
|
|
|
|
|
|
via SetCart input. |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
# Argument: 'ns:CheckoutCompleteRedirectType' |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=cut |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub setCheckoutCompleteRedirect { |
191
|
|
|
|
|
|
|
my $self = shift; |
192
|
|
|
|
|
|
|
$self->{'CheckoutCompleteRedirect'} = shift |
193
|
|
|
|
|
|
|
} |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head2 getCheckoutCompleteRedirect() |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
Calls: GetCart |
198
|
|
|
|
|
|
|
SetCart |
199
|
|
|
|
|
|
|
Returned: Conditionally |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
# Returns: 'ns:CheckoutCompleteRedirectType' |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=cut |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
sub getCheckoutCompleteRedirect { |
206
|
|
|
|
|
|
|
my $self = shift; |
207
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'CheckoutCompleteRedirect' |
208
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutCompleteRedirectType'); |
209
|
|
|
|
|
|
|
} |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=head2 setCheckoutURL() |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
The eBay-specified URL to which the third party site should direct the |
215
|
|
|
|
|
|
|
user for checking out. |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
# Argument: 'xs:anyURI' |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=cut |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
sub setCheckoutURL { |
222
|
|
|
|
|
|
|
my $self = shift; |
223
|
|
|
|
|
|
|
$self->{'CheckoutURL'} = shift |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=head2 getCheckoutURL() |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
Calls: GetCart |
229
|
|
|
|
|
|
|
SetCart |
230
|
|
|
|
|
|
|
Returned: Always |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
# Returns: 'xs:anyURI' |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
=cut |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
sub getCheckoutURL { |
237
|
|
|
|
|
|
|
my $self = shift; |
238
|
|
|
|
|
|
|
return $self->{'CheckoutURL'}; |
239
|
|
|
|
|
|
|
} |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
=head2 setCreationTime() |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
Cart creation date time. |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=cut |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
sub setCreationTime { |
251
|
|
|
|
|
|
|
my $self = shift; |
252
|
|
|
|
|
|
|
$self->{'CreationTime'} = shift |
253
|
|
|
|
|
|
|
} |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
=head2 getCreationTime() |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
Calls: GetCart |
258
|
|
|
|
|
|
|
SetCart |
259
|
|
|
|
|
|
|
Returned: Always |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
=cut |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
sub getCreationTime { |
266
|
|
|
|
|
|
|
my $self = shift; |
267
|
|
|
|
|
|
|
return $self->{'CreationTime'}; |
268
|
|
|
|
|
|
|
} |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head2 setExpirationTime() |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
The time at which the cart will no longer exist in the eBay |
274
|
|
|
|
|
|
|
Express domain. This is currently 7 days after the CreationTime but |
275
|
|
|
|
|
|
|
may be changed by eBay in the future. |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
=cut |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
sub setExpirationTime { |
282
|
|
|
|
|
|
|
my $self = shift; |
283
|
|
|
|
|
|
|
$self->{'ExpirationTime'} = shift |
284
|
|
|
|
|
|
|
} |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=head2 getExpirationTime() |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
Calls: GetCart |
289
|
|
|
|
|
|
|
SetCart |
290
|
|
|
|
|
|
|
Returned: Always |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
=cut |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
sub getExpirationTime { |
297
|
|
|
|
|
|
|
my $self = shift; |
298
|
|
|
|
|
|
|
return $self->{'ExpirationTime'}; |
299
|
|
|
|
|
|
|
} |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
=head2 setOrderDetail() |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
Details of the order for the checked out cart. This container and its children |
305
|
|
|
|
|
|
|
are only returned if checkout was completed on eBay Express. |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
# Argument: 'ns:CheckoutOrderDetailType' |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
=cut |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
sub setOrderDetail { |
312
|
|
|
|
|
|
|
my $self = shift; |
313
|
|
|
|
|
|
|
$self->{'OrderDetail'} = shift |
314
|
|
|
|
|
|
|
} |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
=head2 getOrderDetail() |
317
|
|
|
|
|
|
|
|
318
|
|
|
|
|
|
|
Calls: GetCart |
319
|
|
|
|
|
|
|
SetCart |
320
|
|
|
|
|
|
|
Returned: Conditionally |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
# Returns: 'ns:CheckoutOrderDetailType' |
323
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
=cut |
325
|
|
|
|
|
|
|
|
326
|
|
|
|
|
|
|
sub getOrderDetail { |
327
|
|
|
|
|
|
|
my $self = shift; |
328
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'OrderDetail' |
329
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutOrderDetailType'); |
330
|
|
|
|
|
|
|
} |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
=head2 setShippingAddress() |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
The address to which the items in the cart are to be shipped. This is echoed from |
336
|
|
|
|
|
|
|
the ShippingAddress provided on input, if provided. |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
# Argument: 'ns:AddressType' |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
=cut |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
sub setShippingAddress { |
343
|
|
|
|
|
|
|
my $self = shift; |
344
|
|
|
|
|
|
|
$self->{'ShippingAddress'} = shift |
345
|
|
|
|
|
|
|
} |
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
=head2 getShippingAddress() |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
Calls: GetCart |
350
|
|
|
|
|
|
|
SetCart |
351
|
|
|
|
|
|
|
Returned: Conditionally |
352
|
|
|
|
|
|
|
|
353
|
|
|
|
|
|
|
# Returns: 'ns:AddressType' |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
=cut |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
sub getShippingAddress { |
358
|
|
|
|
|
|
|
my $self = shift; |
359
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ShippingAddress' |
360
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType'); |
361
|
|
|
|
|
|
|
} |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
|
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
## Attribute and Property lists |
368
|
|
|
|
|
|
|
sub getPropertiesList { |
369
|
|
|
|
|
|
|
my $self = shift; |
370
|
|
|
|
|
|
|
return \@gaProperties; |
371
|
|
|
|
|
|
|
} |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
sub getAttributesList { |
374
|
|
|
|
|
|
|
my $self = shift; |
375
|
|
|
|
|
|
|
return \@gaAttributes; |
376
|
|
|
|
|
|
|
} |
377
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
1; |