line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ItemArrayType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1816
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ItemArrayType.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::ItemArrayType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Container for a list of items. Can contain zero, one, or multiple |
25
|
|
|
|
|
|
|
ItemType objects, each of which conveys the data for one item listing. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::ItemArrayType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
222
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Item', 'ns:ItemType', '1' |
47
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemType', '1' ] |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my @gaAttributes = ( |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 Subroutines: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub new { |
60
|
|
|
|
|
|
|
my $classname = shift; |
61
|
|
|
|
|
|
|
my %args = @_; |
62
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
63
|
|
|
|
|
|
|
return $self; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub isScalar { |
67
|
|
|
|
|
|
|
return 0; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 setItem() |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Contains the data properties that define one item listing. GetSellerEvents and |
75
|
|
|
|
|
|
|
GetSellerList only return items if any are available for the seller within the |
76
|
|
|
|
|
|
|
time window specified in the request. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Some optional fields are only returned if the seller defined them for the |
79
|
|
|
|
|
|
|
item. Some fields are only returned under particular conditions specified in |
80
|
|
|
|
|
|
|
the individual field descriptions. For example, a buyer's contact information |
81
|
|
|
|
|
|
|
might only be returned if the member who is making the request (as identified |
82
|
|
|
|
|
|
|
in eBayAuthToken) has a transactional relationship with that buyer. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
For calls that support detail levels, the set of fields returned is also |
85
|
|
|
|
|
|
|
controlled by the value of DetailLevel in the request. For some calls, other |
86
|
|
|
|
|
|
|
parameters in the request can also control the data returned for each item. |
87
|
|
|
|
|
|
|
For example, GranularityLevel controls the fields to return for each item in |
88
|
|
|
|
|
|
|
the GetSellerList response. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
For GetSearchResultsExpress, ItemDetails controls the fields to return for each item. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
# Argument: reference to an array |
94
|
|
|
|
|
|
|
of 'ns:ItemType' |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
sub setItem { |
99
|
|
|
|
|
|
|
my $self = shift; |
100
|
|
|
|
|
|
|
$self->{'Item'} = |
101
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 getItem() |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Calls: GetBidderList |
107
|
|
|
|
|
|
|
Returned: Always |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Calls: GetCategoryListings |
110
|
|
|
|
|
|
|
Returned: Conditionally |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Calls: GetSellerList |
113
|
|
|
|
|
|
|
Returned: Conditionally |
114
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ReturnAll |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Calls: GetSellerEvents |
117
|
|
|
|
|
|
|
Returned: Conditionally |
118
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Calls: GetMyeBayBuying |
121
|
|
|
|
|
|
|
Returned: Conditionally |
122
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnSummary, ReturnAll |
123
|
|
|
|
|
|
|
Context: BestOfferList |
124
|
|
|
|
|
|
|
BidList |
125
|
|
|
|
|
|
|
LostList |
126
|
|
|
|
|
|
|
WatchList |
127
|
|
|
|
|
|
|
DeletedFromLostList |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Calls: GetMyeBaySelling |
130
|
|
|
|
|
|
|
Returned: Conditionally |
131
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnSummary, ReturnAll |
132
|
|
|
|
|
|
|
Context: ActiveList |
133
|
|
|
|
|
|
|
ScheduledList |
134
|
|
|
|
|
|
|
UnsoldList |
135
|
|
|
|
|
|
|
BidList |
136
|
|
|
|
|
|
|
DeletedFromUnsoldList |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Calls: GetProducts |
139
|
|
|
|
|
|
|
Returned: Conditionally |
140
|
|
|
|
|
|
|
MaxOccurs: 200 |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
# Returns: reference to an array |
143
|
|
|
|
|
|
|
of 'ns:ItemType' |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=cut |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub getItem { |
148
|
|
|
|
|
|
|
my $self = shift; |
149
|
|
|
|
|
|
|
return $self->_getDataTypeArray('Item'); |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
## Attribute and Property lists |
157
|
|
|
|
|
|
|
sub getPropertiesList { |
158
|
|
|
|
|
|
|
my $self = shift; |
159
|
|
|
|
|
|
|
return \@gaProperties; |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
sub getAttributesList { |
163
|
|
|
|
|
|
|
my $self = shift; |
164
|
|
|
|
|
|
|
return \@gaAttributes; |
165
|
|
|
|
|
|
|
} |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
1; |