line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::CrossPromotionsType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1656
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. CrossPromotionsType.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::CrossPromotionsType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Contains one or more items cross-promoted with |
25
|
|
|
|
|
|
|
the display or purchase of a referring item. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::CrossPromotionsType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
74
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemIDType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::PromotedItemType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::PromotionMethodCodeType; |
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::PromotionSchemeCodeType; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ItemID', 'ns:ItemIDType', '' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType', '1' ] |
51
|
|
|
|
|
|
|
, [ 'PrimaryScheme', 'ns:PromotionSchemeCodeType', '' |
52
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::PromotionSchemeCodeType', '' ] |
53
|
|
|
|
|
|
|
, [ 'PromotedItem', 'ns:PromotedItemType', '1' |
54
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::PromotedItemType', '1' ] |
55
|
|
|
|
|
|
|
, [ 'PromotionMethod', 'ns:PromotionMethodCodeType', '' |
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::PromotionMethodCodeType', '' ] |
57
|
|
|
|
|
|
|
, [ 'SellerID', 'xs:string', '', '', '' ] |
58
|
|
|
|
|
|
|
, [ 'ShippingDiscount', 'xs:boolean', '', '', '' ] |
59
|
|
|
|
|
|
|
, [ 'StoreName', 'xs:string', '', '', '' ] |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
my @gaAttributes = ( |
64
|
|
|
|
|
|
|
); |
65
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 Subroutines: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub new { |
72
|
|
|
|
|
|
|
my $classname = shift; |
73
|
|
|
|
|
|
|
my %args = @_; |
74
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
75
|
|
|
|
|
|
|
return $self; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub isScalar { |
79
|
|
|
|
|
|
|
return 0; |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 setItemID() |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Unique item ID for the referring item. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
# Argument: 'ns:ItemIDType' |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
sub setItemID { |
95
|
|
|
|
|
|
|
my $self = shift; |
96
|
|
|
|
|
|
|
$self->{'ItemID'} = shift |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 getItemID() |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Calls: GetBidderList |
102
|
|
|
|
|
|
|
Returned: Conditionally |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Calls: GetItem |
105
|
|
|
|
|
|
|
Returned: Conditionally |
106
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
109
|
|
|
|
|
|
|
Returned: Always |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
# Returns: 'ns:ItemIDType' |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=cut |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
sub getItemID { |
116
|
|
|
|
|
|
|
my $self = shift; |
117
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ItemID' |
118
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType'); |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 setPrimaryScheme() |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
The primary cross-promotion rule scheme that |
125
|
|
|
|
|
|
|
was applied to return the cross-promoted item. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
# Argument: 'ns:PromotionSchemeCodeType' |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=cut |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
sub setPrimaryScheme { |
132
|
|
|
|
|
|
|
my $self = shift; |
133
|
|
|
|
|
|
|
$self->{'PrimaryScheme'} = shift |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 getPrimaryScheme() |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Calls: GetBidderList |
139
|
|
|
|
|
|
|
Returned: Conditionally |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
Calls: GetItem |
142
|
|
|
|
|
|
|
Returned: Conditionally |
143
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
146
|
|
|
|
|
|
|
Returned: Always |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
# Returns: 'ns:PromotionSchemeCodeType' |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub getPrimaryScheme { |
153
|
|
|
|
|
|
|
my $self = shift; |
154
|
|
|
|
|
|
|
return $self->{'PrimaryScheme'}; |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 setPromotedItem() |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Contains one cross-promoted item. |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# Argument: reference to an array |
163
|
|
|
|
|
|
|
of 'ns:PromotedItemType' |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=cut |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
sub setPromotedItem { |
168
|
|
|
|
|
|
|
my $self = shift; |
169
|
|
|
|
|
|
|
$self->{'PromotedItem'} = |
170
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=head2 getPromotedItem() |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
Calls: GetBidderList |
176
|
|
|
|
|
|
|
Returned: Conditionally |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Calls: GetItem |
179
|
|
|
|
|
|
|
Returned: Conditionally |
180
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
183
|
|
|
|
|
|
|
Returned: Conditionally |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
# Returns: reference to an array |
186
|
|
|
|
|
|
|
of 'ns:PromotedItemType' |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=cut |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub getPromotedItem { |
191
|
|
|
|
|
|
|
my $self = shift; |
192
|
|
|
|
|
|
|
return $self->_getDataTypeArray('PromotedItem'); |
193
|
|
|
|
|
|
|
} |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=head2 setPromotionMethod() |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
The type of promotion, CrossSell or UpSell. |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
# Argument: 'ns:PromotionMethodCodeType' |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=cut |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
sub setPromotionMethod { |
205
|
|
|
|
|
|
|
my $self = shift; |
206
|
|
|
|
|
|
|
$self->{'PromotionMethod'} = shift |
207
|
|
|
|
|
|
|
} |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=head2 getPromotionMethod() |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
Calls: GetBidderList |
212
|
|
|
|
|
|
|
Returned: Conditionally |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
Calls: GetItem |
215
|
|
|
|
|
|
|
Returned: Conditionally |
216
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
219
|
|
|
|
|
|
|
Returned: Always |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
# Returns: 'ns:PromotionMethodCodeType' |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=cut |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub getPromotionMethod { |
226
|
|
|
|
|
|
|
my $self = shift; |
227
|
|
|
|
|
|
|
return $self->{'PromotionMethod'}; |
228
|
|
|
|
|
|
|
} |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 setSellerID() |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
The eBay user ID of the seller offering the |
234
|
|
|
|
|
|
|
cross-promoted item. |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
# Argument: 'xs:string' |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=cut |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
sub setSellerID { |
241
|
|
|
|
|
|
|
my $self = shift; |
242
|
|
|
|
|
|
|
$self->{'SellerID'} = shift |
243
|
|
|
|
|
|
|
} |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=head2 getSellerID() |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
Calls: GetBidderList |
248
|
|
|
|
|
|
|
Returned: Conditionally |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
Calls: GetItem |
251
|
|
|
|
|
|
|
Returned: Conditionally |
252
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
255
|
|
|
|
|
|
|
Returned: Always |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
# Returns: 'xs:string' |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
=cut |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
sub getSellerID { |
262
|
|
|
|
|
|
|
my $self = shift; |
263
|
|
|
|
|
|
|
return $self->{'SellerID'}; |
264
|
|
|
|
|
|
|
} |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head2 setShippingDiscount() |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
Whether a shipping discount is offered by the seller |
270
|
|
|
|
|
|
|
when the cross-promoted item is purchased. |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
=cut |
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
sub setShippingDiscount { |
277
|
|
|
|
|
|
|
my $self = shift; |
278
|
|
|
|
|
|
|
$self->{'ShippingDiscount'} = shift |
279
|
|
|
|
|
|
|
} |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
=head2 isShippingDiscount() |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
Calls: GetBidderList |
284
|
|
|
|
|
|
|
Returned: Conditionally |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
Calls: GetItem |
287
|
|
|
|
|
|
|
Returned: Conditionally |
288
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
291
|
|
|
|
|
|
|
Returned: Always |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
=cut |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
sub isShippingDiscount { |
298
|
|
|
|
|
|
|
my $self = shift; |
299
|
|
|
|
|
|
|
return $self->{'ShippingDiscount'}; |
300
|
|
|
|
|
|
|
} |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
=head2 setStoreName() |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
The store name of the seller offering the cross-promoted item. |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
# Argument: 'xs:string' |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
=cut |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
sub setStoreName { |
312
|
|
|
|
|
|
|
my $self = shift; |
313
|
|
|
|
|
|
|
$self->{'StoreName'} = shift |
314
|
|
|
|
|
|
|
} |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
=head2 getStoreName() |
317
|
|
|
|
|
|
|
|
318
|
|
|
|
|
|
|
Calls: GetCrossPromotions |
319
|
|
|
|
|
|
|
Returned: Conditionally |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
# Returns: 'xs:string' |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
=cut |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
sub getStoreName { |
326
|
|
|
|
|
|
|
my $self = shift; |
327
|
|
|
|
|
|
|
return $self->{'StoreName'}; |
328
|
|
|
|
|
|
|
} |
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
## Attribute and Property lists |
335
|
|
|
|
|
|
|
sub getPropertiesList { |
336
|
|
|
|
|
|
|
my $self = shift; |
337
|
|
|
|
|
|
|
return \@gaProperties; |
338
|
|
|
|
|
|
|
} |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
sub getAttributesList { |
341
|
|
|
|
|
|
|
my $self = shift; |
342
|
|
|
|
|
|
|
return \@gaAttributes; |
343
|
|
|
|
|
|
|
} |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
1; |