line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::TicketDetailsType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1378
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. TicketDetailsType.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::TicketDetailsType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Defines supported fields for searching in ticket categories. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::TicketDetailsType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
34
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::DateType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::TicketEventTypeCodeType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'CityName', 'xs:string', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'EventDate', 'ns:DateType', '' |
48
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::DateType', '1' ] |
49
|
|
|
|
|
|
|
, [ 'EventType', 'ns:TicketEventTypeCodeType', '' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::TicketEventTypeCodeType', '' ] |
51
|
|
|
|
|
|
|
, [ 'StateOrProvince', 'xs:string', '', '', '' ] |
52
|
|
|
|
|
|
|
, [ 'TicketQuantity', 'xs:int', '', '', '' ] |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
my @gaAttributes = ( |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 Subroutines: |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub new { |
65
|
|
|
|
|
|
|
my $classname = shift; |
66
|
|
|
|
|
|
|
my %args = @_; |
67
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
68
|
|
|
|
|
|
|
return $self; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub isScalar { |
72
|
|
|
|
|
|
|
return 0; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 setCityName() |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The city in which the event venue is located. |
80
|
|
|
|
|
|
|
Specify the full name of the city. Use the canonical spelling, |
81
|
|
|
|
|
|
|
such as "Los Angeles" (not "LA"). |
82
|
|
|
|
|
|
|
When you search for tickets, if eBay doesn't recognize the city, |
83
|
|
|
|
|
|
|
eBay drops CityName and returns results that match |
84
|
|
|
|
|
|
|
other fields in the request. |
85
|
|
|
|
|
|
|
For the eBay US site, eBay only searches by CityName if you also specify |
86
|
|
|
|
|
|
|
StateOrProvince. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Note: |
89
|
|
|
|
|
|
|
If your application needs to provide users with a predefined list of |
90
|
|
|
|
|
|
|
city names that eBay recognizes, you can call GetProductFinder |
91
|
|
|
|
|
|
|
to find all the cities that the ticket finder currently supports. |
92
|
|
|
|
|
|
|
GetProductFinder is a more complex call. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Calls: GetSearchResults |
95
|
|
|
|
|
|
|
RequiredInput: No |
96
|
|
|
|
|
|
|
MaxLength: 60 |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
# Argument: 'xs:string' |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
sub setCityName { |
103
|
|
|
|
|
|
|
my $self = shift; |
104
|
|
|
|
|
|
|
$self->{'CityName'} = shift |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 getCityName() |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
# Returns: 'xs:string' |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=cut |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
sub getCityName { |
114
|
|
|
|
|
|
|
my $self = shift; |
115
|
|
|
|
|
|
|
return $self->{'CityName'}; |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 setEventDate() |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The date of the event. If specified, the results only include listings |
122
|
|
|
|
|
|
|
that specify this date in their Item Specifics. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
When you search for tickets, we support these combinations: |
125
|
|
|
|
|
|
|
- Year (matches any ticket in the specified year) |
126
|
|
|
|
|
|
|
- Month (matches any day in the specified month, in any year) |
127
|
|
|
|
|
|
|
- Year and Month (matches any day in the specified year and month) |
128
|
|
|
|
|
|
|
- Month and Day (matches the specified month and day in any year) |
129
|
|
|
|
|
|
|
- Year, Month, and Day (matches the specified year, month, and day) |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Calls: GetSearchResults |
132
|
|
|
|
|
|
|
RequiredInput: No |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# Argument: 'ns:DateType' |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub setEventDate { |
139
|
|
|
|
|
|
|
my $self = shift; |
140
|
|
|
|
|
|
|
$self->{'EventDate'} = shift |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 getEventDate() |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
# Returns: 'ns:DateType' |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=cut |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
sub getEventDate { |
150
|
|
|
|
|
|
|
my $self = shift; |
151
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'EventDate' |
152
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::DateType'); |
153
|
|
|
|
|
|
|
} |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 setEventType() |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
The type of event, such as a concert or a sporting event. |
159
|
|
|
|
|
|
|
The eBay US, UK, and Germany sites support different values. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Calls: GetSearchResults |
162
|
|
|
|
|
|
|
RequiredInput: Conditionally |
163
|
|
|
|
|
|
|
Default: Any |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
# Argument: 'ns:TicketEventTypeCodeType' |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
sub setEventType { |
170
|
|
|
|
|
|
|
my $self = shift; |
171
|
|
|
|
|
|
|
$self->{'EventType'} = shift |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 getEventType() |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
# Returns: 'ns:TicketEventTypeCodeType' |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=cut |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
sub getEventType { |
181
|
|
|
|
|
|
|
my $self = shift; |
182
|
|
|
|
|
|
|
return $self->{'EventType'}; |
183
|
|
|
|
|
|
|
} |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head2 setStateOrProvince() |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
The state or province where the event venue is located. |
189
|
|
|
|
|
|
|
Applicable to eBay US searches only. |
190
|
|
|
|
|
|
|
Use the full name, such as "California" (not "CA"). |
191
|
|
|
|
|
|
|
If StateOrProvince isn't specified or no match is found in the |
192
|
|
|
|
|
|
|
product finder, eBay ignores CityName (if it is also specified). |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Calls: GetSearchResults |
195
|
|
|
|
|
|
|
RequiredInput: No |
196
|
|
|
|
|
|
|
MaxLength: 60 |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
# Argument: 'xs:string' |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=cut |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
sub setStateOrProvince { |
203
|
|
|
|
|
|
|
my $self = shift; |
204
|
|
|
|
|
|
|
$self->{'StateOrProvince'} = shift |
205
|
|
|
|
|
|
|
} |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=head2 getStateOrProvince() |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
# Returns: 'xs:string' |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
=cut |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
sub getStateOrProvince { |
214
|
|
|
|
|
|
|
my $self = shift; |
215
|
|
|
|
|
|
|
return $self->{'StateOrProvince'}; |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=head2 setTicketQuantity() |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
The number of tickets available in the listing, as defined |
222
|
|
|
|
|
|
|
in the listing's Item Specifics. (This is not the same as |
223
|
|
|
|
|
|
|
LotSize or Quantity.) |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
- For the US site, specify a value from 1 to 10. |
226
|
|
|
|
|
|
|
- For the UK site, specify a value from 1 to 10. |
227
|
|
|
|
|
|
|
- For the DE site, specify a value from 1 to 4. |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
To search for any quantity (or to include other quantities |
230
|
|
|
|
|
|
|
in the results), do not specify TicketQuantity at all. |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
Calls: GetSearchResults |
233
|
|
|
|
|
|
|
RequiredInput: No |
234
|
|
|
|
|
|
|
Max: 10 |
235
|
|
|
|
|
|
|
Min: 1 |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
# Argument: 'xs:int' |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=cut |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
sub setTicketQuantity { |
242
|
|
|
|
|
|
|
my $self = shift; |
243
|
|
|
|
|
|
|
$self->{'TicketQuantity'} = shift |
244
|
|
|
|
|
|
|
} |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
=head2 getTicketQuantity() |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
# Returns: 'xs:int' |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
=cut |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
sub getTicketQuantity { |
253
|
|
|
|
|
|
|
my $self = shift; |
254
|
|
|
|
|
|
|
return $self->{'TicketQuantity'}; |
255
|
|
|
|
|
|
|
} |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
## Attribute and Property lists |
262
|
|
|
|
|
|
|
sub getPropertiesList { |
263
|
|
|
|
|
|
|
my $self = shift; |
264
|
|
|
|
|
|
|
return \@gaProperties; |
265
|
|
|
|
|
|
|
} |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
sub getAttributesList { |
268
|
|
|
|
|
|
|
my $self = shift; |
269
|
|
|
|
|
|
|
return \@gaAttributes; |
270
|
|
|
|
|
|
|
} |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
1; |