line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::AddSecondChanceItem::AddSecondChanceItemRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1457
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. AddSecondChanceItemRequestType.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::Call::AddSecondChanceItem::AddSecondChanceItemRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Creates a new Second Chance Offer (that is, an offer for an unsold item) |
25
|
|
|
|
|
|
|
for one of that item's non-winning bidders. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::Call::AddSecondChanceItem::AddSecondChanceItemRequestType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
46
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AmountType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemIDType; |
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::UserIDType; |
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SecondChanceOfferDurationCodeType; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my @gaProperties = ( [ 'BuyItNowPrice', 'ns:AmountType', '' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
51
|
|
|
|
|
|
|
, [ 'Duration', 'ns:SecondChanceOfferDurationCodeType', '' |
52
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SecondChanceOfferDurationCodeType', '' ] |
53
|
|
|
|
|
|
|
, [ 'ItemID', 'ns:ItemIDType', '' |
54
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType', '1' ] |
55
|
|
|
|
|
|
|
, [ 'RecipientBidderUserID', 'ns:UserIDType', '' |
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::UserIDType', '1' ] |
57
|
|
|
|
|
|
|
, [ 'SellerMessage', 'xs:string', '', '', '' ] |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
my @gaAttributes = ( |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 Subroutines: |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub new { |
70
|
|
|
|
|
|
|
my $classname = shift; |
71
|
|
|
|
|
|
|
my %args = @_; |
72
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
73
|
|
|
|
|
|
|
return $self; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub isScalar { |
77
|
|
|
|
|
|
|
return 0; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 setBuyItNowPrice() |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The amount the offer recipient must pay to purchase the item |
85
|
|
|
|
|
|
|
from the second chance offer listing. Use only when the original |
86
|
|
|
|
|
|
|
item was listed in an eBay Motors vehicle category (or in some |
87
|
|
|
|
|
|
|
categories on U.S. and international sites for |
88
|
|
|
|
|
|
|
high-priced items, such as items in many U.S. and Canada |
89
|
|
|
|
|
|
|
Business and Industrial categories) and it ended unsold |
90
|
|
|
|
|
|
|
because the reserve price was not met. Otherwise, eBay |
91
|
|
|
|
|
|
|
establishes the price and no price should be submitted. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
RequiredInput: No |
94
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
sub setBuyItNowPrice { |
99
|
|
|
|
|
|
|
my $self = shift; |
100
|
|
|
|
|
|
|
$self->{'BuyItNowPrice'} = shift |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 getBuyItNowPrice() |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
sub getBuyItNowPrice { |
110
|
|
|
|
|
|
|
my $self = shift; |
111
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'BuyItNowPrice' |
112
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 setDuration() |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Specifies the length of time the second chance offer listing will be |
119
|
|
|
|
|
|
|
active. The recipient bidder has that much time to purchase the item or |
120
|
|
|
|
|
|
|
the listing expires. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
RequiredInput: Yes |
123
|
|
|
|
|
|
|
# Argument: 'ns:SecondChanceOfferDurationCodeType' |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=cut |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
sub setDuration { |
128
|
|
|
|
|
|
|
my $self = shift; |
129
|
|
|
|
|
|
|
$self->{'Duration'} = shift |
130
|
|
|
|
|
|
|
} |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head2 getDuration() |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# Returns: 'ns:SecondChanceOfferDurationCodeType' |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub getDuration { |
139
|
|
|
|
|
|
|
my $self = shift; |
140
|
|
|
|
|
|
|
return $self->{'Duration'}; |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head2 setItemID() |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Specifies the item ID for the original, ended listing from which the |
147
|
|
|
|
|
|
|
second chance offer item comes. A new ItemID is returned for the second |
148
|
|
|
|
|
|
|
chance offer item. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
RequiredInput: Yes |
153
|
|
|
|
|
|
|
# Argument: 'ns:ItemIDType' |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub setItemID { |
158
|
|
|
|
|
|
|
my $self = shift; |
159
|
|
|
|
|
|
|
$self->{'ItemID'} = shift |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head2 getItemID() |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Returns: 'ns:ItemIDType' |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getItemID { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ItemID' |
171
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType'); |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 setRecipientBidderUserID() |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Specifies the bidder from the original, ended listing to whom the seller |
178
|
|
|
|
|
|
|
is extending the second chance offer. Specify only one |
179
|
|
|
|
|
|
|
RecipientBidderUserID per call. If multiple users are specified (each in a |
180
|
|
|
|
|
|
|
RecipientBidderUserID node), only the last one specified receives the |
181
|
|
|
|
|
|
|
offer. |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
RequiredInput: Yes |
184
|
|
|
|
|
|
|
# Argument: 'ns:UserIDType' |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=cut |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
sub setRecipientBidderUserID { |
189
|
|
|
|
|
|
|
my $self = shift; |
190
|
|
|
|
|
|
|
$self->{'RecipientBidderUserID'} = shift |
191
|
|
|
|
|
|
|
} |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
=head2 getRecipientBidderUserID() |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
# Returns: 'ns:UserIDType' |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=cut |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
sub getRecipientBidderUserID { |
200
|
|
|
|
|
|
|
my $self = shift; |
201
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'RecipientBidderUserID' |
202
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::UserIDType'); |
203
|
|
|
|
|
|
|
} |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=head2 setSellerMessage() |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
Message content. Cannot contain HTML, asterisks, or quotes. This content |
209
|
|
|
|
|
|
|
is included in the second chance offer email sent to the recipient, which |
210
|
|
|
|
|
|
|
can be retrieved with GetMyMessages. |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
MaxLength: 1000 |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
RequiredInput: No |
215
|
|
|
|
|
|
|
# Argument: 'xs:string' |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=cut |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
sub setSellerMessage { |
220
|
|
|
|
|
|
|
my $self = shift; |
221
|
|
|
|
|
|
|
$self->{'SellerMessage'} = shift |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head2 getSellerMessage() |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
# Returns: 'xs:string' |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
=cut |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
sub getSellerMessage { |
231
|
|
|
|
|
|
|
my $self = shift; |
232
|
|
|
|
|
|
|
return $self->{'SellerMessage'}; |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
## Attribute and Property lists |
240
|
|
|
|
|
|
|
sub getPropertiesList { |
241
|
|
|
|
|
|
|
my $self = shift; |
242
|
|
|
|
|
|
|
return \@gaProperties; |
243
|
|
|
|
|
|
|
} |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
sub getAttributesList { |
246
|
|
|
|
|
|
|
my $self = shift; |
247
|
|
|
|
|
|
|
return \@gaAttributes; |
248
|
|
|
|
|
|
|
} |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
1; |