line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::SetCart::SetCartRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1807
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
38
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. SetCartRequestType.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::Call::SetCart::SetCartRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Enables a third party developer to create a new shopping cart in the eBay Express |
25
|
|
|
|
|
|
|
domain or to modify the contents of an existing shopping cart by adding or |
26
|
|
|
|
|
|
|
removing items or changing item quantity. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 INHERITANCE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
eBay::API::XML::Call::SetCart::SetCartRequestType inherits from the L class |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
1
|
|
48
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AddressType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AffiliateTrackingDetailsType; |
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CartItemArrayType; |
47
|
|
|
|
|
|
|
use eBay::API::XML::DataType::CheckoutCompleteRedirectType; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my @gaProperties = ( [ 'AffiliateTrackingDetails', 'ns:AffiliateTrackingDetailsType', '' |
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AffiliateTrackingDetailsType', '1' ] |
52
|
|
|
|
|
|
|
, [ 'CartID', 'xs:long', '', '', '' ] |
53
|
|
|
|
|
|
|
, [ 'CartItemArray', 'ns:CartItemArrayType', '' |
54
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CartItemArrayType', '1' ] |
55
|
|
|
|
|
|
|
, [ 'CheckoutCompleteRedirect', 'ns:CheckoutCompleteRedirectType', '' |
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutCompleteRedirectType', '1' ] |
57
|
|
|
|
|
|
|
, [ 'ShippingAddress', 'ns:AddressType', '' |
58
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType', '1' ] |
59
|
|
|
|
|
|
|
); |
60
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
my @gaAttributes = ( |
63
|
|
|
|
|
|
|
); |
64
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 Subroutines: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub new { |
71
|
|
|
|
|
|
|
my $classname = shift; |
72
|
|
|
|
|
|
|
my %args = @_; |
73
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
74
|
|
|
|
|
|
|
return $self; |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub isScalar { |
78
|
|
|
|
|
|
|
return 0; |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 setAffiliateTrackingDetails() |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Container for affiliate tags. |
86
|
|
|
|
|
|
|
If you use affiliate tags, it is possible to get affiliate commissions |
87
|
|
|
|
|
|
|
based on calls made by your application. |
88
|
|
|
|
|
|
|
(See the eBay Partner Network |
89
|
|
|
|
|
|
|
for information about commissions.) |
90
|
|
|
|
|
|
|
Affiliate tags enable the tracking of user activity. |
91
|
|
|
|
|
|
|
You can use child tags of AffiliateTrackingDetails if you want |
92
|
|
|
|
|
|
|
call output to include a string, in |
93
|
|
|
|
|
|
|
Item.ListingDetails.ViewItemURL, that includes |
94
|
|
|
|
|
|
|
affiliate tracking information. |
95
|
|
|
|
|
|
|
Affiliate details that you provide appear in the CheckoutURL that is returned by SetCart. |
96
|
|
|
|
|
|
|
Child elements of this element that are marked as conditionally required are required |
97
|
|
|
|
|
|
|
only if this container is present. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AffiliateTrackingConcepts |
100
|
|
|
|
|
|
|
Title: Affiliate Tracking Concepts |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
RequiredInput: No |
103
|
|
|
|
|
|
|
# Argument: 'ns:AffiliateTrackingDetailsType' |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
sub setAffiliateTrackingDetails { |
108
|
|
|
|
|
|
|
my $self = shift; |
109
|
|
|
|
|
|
|
$self->{'AffiliateTrackingDetails'} = shift |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 getAffiliateTrackingDetails() |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# Returns: 'ns:AffiliateTrackingDetailsType' |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
sub getAffiliateTrackingDetails { |
119
|
|
|
|
|
|
|
my $self = shift; |
120
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'AffiliateTrackingDetails' |
121
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AffiliateTrackingDetailsType'); |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head2 setCartID() |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
The ID of an existing cart whose contents you wish to modify. |
128
|
|
|
|
|
|
|
To create a new cart, omit this tag altogether and preserve |
129
|
|
|
|
|
|
|
the CartID that is returned for subsequent calls to SetCart for that cart. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
RequiredInput: Conditionally |
132
|
|
|
|
|
|
|
# Argument: 'xs:long' |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
sub setCartID { |
137
|
|
|
|
|
|
|
my $self = shift; |
138
|
|
|
|
|
|
|
$self->{'CartID'} = shift |
139
|
|
|
|
|
|
|
} |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 getCartID() |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
# Returns: 'xs:long' |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=cut |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub getCartID { |
148
|
|
|
|
|
|
|
my $self = shift; |
149
|
|
|
|
|
|
|
return $self->{'CartID'}; |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 setCartItemArray() |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
Array of CartItem (details about items and what is to be done with each, |
156
|
|
|
|
|
|
|
such as add, delete, update). |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
RequiredInput: No |
159
|
|
|
|
|
|
|
# Argument: 'ns:CartItemArrayType' |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=cut |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
sub setCartItemArray { |
164
|
|
|
|
|
|
|
my $self = shift; |
165
|
|
|
|
|
|
|
$self->{'CartItemArray'} = shift |
166
|
|
|
|
|
|
|
} |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head2 getCartItemArray() |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
# Returns: 'ns:CartItemArrayType' |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=cut |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub getCartItemArray { |
175
|
|
|
|
|
|
|
my $self = shift; |
176
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'CartItemArray' |
177
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CartItemArrayType'); |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=head2 setCheckoutCompleteRedirect() |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
When the user has completed eBay Express checkout with the shopping cart, the |
184
|
|
|
|
|
|
|
user is shown a link to your website. This element enables you to define the |
185
|
|
|
|
|
|
|
properties of that link--its URL and its visible name. |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
RequiredInput: No |
188
|
|
|
|
|
|
|
# Argument: 'ns:CheckoutCompleteRedirectType' |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=cut |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
sub setCheckoutCompleteRedirect { |
193
|
|
|
|
|
|
|
my $self = shift; |
194
|
|
|
|
|
|
|
$self->{'CheckoutCompleteRedirect'} = shift |
195
|
|
|
|
|
|
|
} |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=head2 getCheckoutCompleteRedirect() |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
# Returns: 'ns:CheckoutCompleteRedirectType' |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=cut |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
sub getCheckoutCompleteRedirect { |
204
|
|
|
|
|
|
|
my $self = shift; |
205
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'CheckoutCompleteRedirect' |
206
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::CheckoutCompleteRedirectType'); |
207
|
|
|
|
|
|
|
} |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=head2 setShippingAddress() |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
The country and postal code to which the items in the cart are to be shipped. Required only |
213
|
|
|
|
|
|
|
if you want shipping costs calculated for those items for which calculated |
214
|
|
|
|
|
|
|
shipping applies. Of no value if there are no items in the cart with calculated shipping. |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
RequiredInput: No |
217
|
|
|
|
|
|
|
# Argument: 'ns:AddressType' |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=cut |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
sub setShippingAddress { |
222
|
|
|
|
|
|
|
my $self = shift; |
223
|
|
|
|
|
|
|
$self->{'ShippingAddress'} = shift |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=head2 getShippingAddress() |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
# Returns: 'ns:AddressType' |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=cut |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
sub getShippingAddress { |
233
|
|
|
|
|
|
|
my $self = shift; |
234
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ShippingAddress' |
235
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType'); |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
## Attribute and Property lists |
243
|
|
|
|
|
|
|
sub getPropertiesList { |
244
|
|
|
|
|
|
|
my $self = shift; |
245
|
|
|
|
|
|
|
return \@gaProperties; |
246
|
|
|
|
|
|
|
} |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
sub getAttributesList { |
249
|
|
|
|
|
|
|
my $self = shift; |
250
|
|
|
|
|
|
|
return \@gaAttributes; |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
1; |