line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ProductInfoType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1144
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ProductInfoType.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::ProductInfoType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::DataType::ProductInfoType inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
43
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AmountType; |
41
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::ProductStateCodeType; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
my @gaProperties = ( [ 'AverageSoldPrice', 'ns:AmountType', '' |
45
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
46
|
|
|
|
|
|
|
, [ 'AverageStartPrice', 'ns:AmountType', '' |
47
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
48
|
|
|
|
|
|
|
, [ 'ProductState', 'ns:ProductStateCodeType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::ProductStateCodeType', '' ] |
50
|
|
|
|
|
|
|
, [ 'Title', 'xs:string', '', '', '' ] |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my @gaAttributes = ( [ 'productInfoID', 'xs:string', '', '', '' ] |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 Subroutines: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub new { |
63
|
|
|
|
|
|
|
my $classname = shift; |
64
|
|
|
|
|
|
|
my %args = @_; |
65
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
66
|
|
|
|
|
|
|
return $self; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub isScalar { |
70
|
|
|
|
|
|
|
return 0; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 setAverageSoldPrice() |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The average sold price (winning bid, Buy It Now price, or fixed price), if any, of |
78
|
|
|
|
|
|
|
completed items that were listed with Pre-filled Item Information from this product. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=cut |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub setAverageSoldPrice { |
85
|
|
|
|
|
|
|
my $self = shift; |
86
|
|
|
|
|
|
|
$self->{'AverageSoldPrice'} = shift |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 getAverageSoldPrice() |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
92
|
|
|
|
|
|
|
Returned: Conditionally |
93
|
|
|
|
|
|
|
Context: PricingRecommendations |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=cut |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub getAverageSoldPrice { |
100
|
|
|
|
|
|
|
my $self = shift; |
101
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'AverageSoldPrice' |
102
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 setAverageStartPrice() |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
The average start price (minimum bid), if any, of completed auction items that were listed |
109
|
|
|
|
|
|
|
with Pre-filled Item Information from this product. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=cut |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
sub setAverageStartPrice { |
116
|
|
|
|
|
|
|
my $self = shift; |
117
|
|
|
|
|
|
|
$self->{'AverageStartPrice'} = shift |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 getAverageStartPrice() |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
123
|
|
|
|
|
|
|
Returned: Conditionally |
124
|
|
|
|
|
|
|
Context: PricingRecommendations |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
sub getAverageStartPrice { |
131
|
|
|
|
|
|
|
my $self = shift; |
132
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'AverageStartPrice' |
133
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head2 setProductState() |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Indicates that the product has changed or will soon change (usually due to a migration |
140
|
|
|
|
|
|
|
from one catalog to another catalog). Typically, this field is |
141
|
|
|
|
|
|
|
returned for up to 90 days for a given product. After that, the product either no |
142
|
|
|
|
|
|
|
longer returns this field or the product is no longer returned (depending on the |
143
|
|
|
|
|
|
|
state change). |
144
|
|
|
|
|
|
|
As of mid-2008, this data is primarily applicable to catalogs used by the |
145
|
|
|
|
|
|
|
US, Germany, Austria, and Switzerland sites. |
146
|
|
|
|
|
|
|
Other sites may undergo catalog changes in the future. |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
# Argument: 'ns:ProductStateCodeType' |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub setProductState { |
153
|
|
|
|
|
|
|
my $self = shift; |
154
|
|
|
|
|
|
|
$self->{'ProductState'} = shift |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head2 getProductState() |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
160
|
|
|
|
|
|
|
Returned: Conditionally |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# Returns: 'ns:ProductStateCodeType' |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=cut |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
sub getProductState { |
167
|
|
|
|
|
|
|
my $self = shift; |
168
|
|
|
|
|
|
|
return $self->{'ProductState'}; |
169
|
|
|
|
|
|
|
} |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head2 setTitle() |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
Title associated with the product. This value can be used as the basis for a |
175
|
|
|
|
|
|
|
suggested listing title. If the title is longer than 55 characters, your application |
176
|
|
|
|
|
|
|
should make sure the suggested title has a max length of 55 characters so that |
177
|
|
|
|
|
|
|
it will be valid for the AddItem family of calls. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
MaxLength: 1024 |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
# Argument: 'xs:string' |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=cut |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
sub setTitle { |
186
|
|
|
|
|
|
|
my $self = shift; |
187
|
|
|
|
|
|
|
$self->{'Title'} = shift |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head2 getTitle() |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
193
|
|
|
|
|
|
|
Returned: Conditionally |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
# Returns: 'xs:string' |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=cut |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
sub getTitle { |
200
|
|
|
|
|
|
|
my $self = shift; |
201
|
|
|
|
|
|
|
return $self->{'Title'}; |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=head2 setProductInfoID() |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
Unique identifier for the product. See the Developer's Guide for information about |
210
|
|
|
|
|
|
|
eBay product IDs. If the primary and secondary category are both catalog-enabled, this |
211
|
|
|
|
|
|
|
ID corresponds to the primary category. |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
MaxLength: 4000 |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
# Argument: 'xs:string' |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=cut |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
sub setProductInfoID { |
220
|
|
|
|
|
|
|
my $self = shift; |
221
|
|
|
|
|
|
|
$self->{'productInfoID'} = shift |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head2 getProductInfoID() |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
Calls: GetItemRecommendations |
227
|
|
|
|
|
|
|
Returned: Conditionally |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
# Returns: 'xs:string' |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=cut |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
sub getProductInfoID { |
234
|
|
|
|
|
|
|
my $self = shift; |
235
|
|
|
|
|
|
|
return $self->{'productInfoID'}; |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
## Attribute and Property lists |
241
|
|
|
|
|
|
|
sub getPropertiesList { |
242
|
|
|
|
|
|
|
my $self = shift; |
243
|
|
|
|
|
|
|
return \@gaProperties; |
244
|
|
|
|
|
|
|
} |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
sub getAttributesList { |
247
|
|
|
|
|
|
|
my $self = shift; |
248
|
|
|
|
|
|
|
return \@gaAttributes; |
249
|
|
|
|
|
|
|
} |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
1; |