line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::SellerPaymentPreferencesType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1352
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. SellerPaymentPreferencesType.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::SellerPaymentPreferencesType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Defines the values that make up the seller's preferences. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::SellerPaymentPreferencesType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
45
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AddressType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::DisplayPayNowButtonCodeType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::UPSRateOptionCodeType; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my @gaProperties = ( [ 'AlwaysUseThisPaymentAddress', 'xs:boolean', '', '', '' ] |
48
|
|
|
|
|
|
|
, [ 'DefaultPayPalEmailAddress', 'xs:string', '', '', '' ] |
49
|
|
|
|
|
|
|
, [ 'DisplayPayNowButton', 'ns:DisplayPayNowButtonCodeType', '' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::DisplayPayNowButtonCodeType', '' ] |
51
|
|
|
|
|
|
|
, [ 'PayPalAlwaysOn', 'xs:boolean', '', '', '' ] |
52
|
|
|
|
|
|
|
, [ 'PayPalPreferred', 'xs:boolean', '', '', '' ] |
53
|
|
|
|
|
|
|
, [ 'SellerPaymentAddress', 'ns:AddressType', '' |
54
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType', '1' ] |
55
|
|
|
|
|
|
|
, [ 'UPSRateOption', 'ns:UPSRateOptionCodeType', '' |
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::UPSRateOptionCodeType', '' ] |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my @gaAttributes = ( |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 Subroutines: |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub new { |
69
|
|
|
|
|
|
|
my $classname = shift; |
70
|
|
|
|
|
|
|
my %args = @_; |
71
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
72
|
|
|
|
|
|
|
return $self; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub isScalar { |
76
|
|
|
|
|
|
|
return 0; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 setAlwaysUseThisPaymentAddress() |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Indicates whether the seller wants all transactions |
84
|
|
|
|
|
|
|
with eBay to use the address specified in SellerPaymentAddress. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Calls: SetUserPreferences |
87
|
|
|
|
|
|
|
RequiredInput: No |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=cut |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
sub setAlwaysUseThisPaymentAddress { |
94
|
|
|
|
|
|
|
my $self = shift; |
95
|
|
|
|
|
|
|
$self->{'AlwaysUseThisPaymentAddress'} = shift |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 isAlwaysUseThisPaymentAddress() |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Calls: GetUserPreferences |
101
|
|
|
|
|
|
|
Returned: Conditionally |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
sub isAlwaysUseThisPaymentAddress { |
108
|
|
|
|
|
|
|
my $self = shift; |
109
|
|
|
|
|
|
|
return $self->{'AlwaysUseThisPaymentAddress'}; |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head2 setDefaultPayPalEmailAddress() |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Specifies the default email address the seller uses for receiving PayPal payments. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Calls: SetUserPreferences |
118
|
|
|
|
|
|
|
RequiredInput: No |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# Argument: 'xs:string' |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub setDefaultPayPalEmailAddress { |
125
|
|
|
|
|
|
|
my $self = shift; |
126
|
|
|
|
|
|
|
$self->{'DefaultPayPalEmailAddress'} = shift |
127
|
|
|
|
|
|
|
} |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head2 getDefaultPayPalEmailAddress() |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Calls: GetUserPreferences |
132
|
|
|
|
|
|
|
Returned: Conditionally |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# Returns: 'xs:string' |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub getDefaultPayPalEmailAddress { |
139
|
|
|
|
|
|
|
my $self = shift; |
140
|
|
|
|
|
|
|
return $self->{'DefaultPayPalEmailAddress'}; |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head2 setDisplayPayNowButton() |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Determines whether the Pay Now button should always be displayed |
147
|
|
|
|
|
|
|
for the user's listings. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Calls: SetUserPreferences |
150
|
|
|
|
|
|
|
RequiredInput: No |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# Argument: 'ns:DisplayPayNowButtonCodeType' |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=cut |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
sub setDisplayPayNowButton { |
157
|
|
|
|
|
|
|
my $self = shift; |
158
|
|
|
|
|
|
|
$self->{'DisplayPayNowButton'} = shift |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head2 getDisplayPayNowButton() |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Calls: GetUserPreferences |
164
|
|
|
|
|
|
|
Returned: Conditionally |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# Returns: 'ns:DisplayPayNowButtonCodeType' |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=cut |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
sub getDisplayPayNowButton { |
171
|
|
|
|
|
|
|
my $self = shift; |
172
|
|
|
|
|
|
|
return $self->{'DisplayPayNowButton'}; |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=head2 setPayPalAlwaysOn() |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Indicates whether PayPal is always accepted for the seller's listings. |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
Calls: SetUserPreferences |
181
|
|
|
|
|
|
|
RequiredInput: No |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=cut |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
sub setPayPalAlwaysOn { |
188
|
|
|
|
|
|
|
my $self = shift; |
189
|
|
|
|
|
|
|
$self->{'PayPalAlwaysOn'} = shift |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=head2 isPayPalAlwaysOn() |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Calls: GetUserPreferences |
195
|
|
|
|
|
|
|
Returned: Conditionally |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
=cut |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
sub isPayPalAlwaysOn { |
202
|
|
|
|
|
|
|
my $self = shift; |
203
|
|
|
|
|
|
|
return $self->{'PayPalAlwaysOn'}; |
204
|
|
|
|
|
|
|
} |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=head2 setPayPalPreferred() |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
Specifies whether a seller wants to let buyers know that PayPal payments |
210
|
|
|
|
|
|
|
are preferred. |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
Calls: SetUserPreferences |
213
|
|
|
|
|
|
|
RequiredInput: No |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=cut |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
sub setPayPalPreferred { |
220
|
|
|
|
|
|
|
my $self = shift; |
221
|
|
|
|
|
|
|
$self->{'PayPalPreferred'} = shift |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head2 isPayPalPreferred() |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
Calls: GetUserPreferences |
227
|
|
|
|
|
|
|
Returned: Conditionally |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=cut |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
sub isPayPalPreferred { |
234
|
|
|
|
|
|
|
my $self = shift; |
235
|
|
|
|
|
|
|
return $self->{'PayPalPreferred'}; |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head2 setSellerPaymentAddress() |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
Specifies the address the seller uses to receive payments from buyers. |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
Calls: SetUserPreferences |
244
|
|
|
|
|
|
|
RequiredInput: No |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
# Argument: 'ns:AddressType' |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=cut |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
sub setSellerPaymentAddress { |
251
|
|
|
|
|
|
|
my $self = shift; |
252
|
|
|
|
|
|
|
$self->{'SellerPaymentAddress'} = shift |
253
|
|
|
|
|
|
|
} |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
=head2 getSellerPaymentAddress() |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
Calls: GetUserPreferences |
258
|
|
|
|
|
|
|
Returned: Conditionally |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
# Returns: 'ns:AddressType' |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
=cut |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
sub getSellerPaymentAddress { |
265
|
|
|
|
|
|
|
my $self = shift; |
266
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'SellerPaymentAddress' |
267
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AddressType'); |
268
|
|
|
|
|
|
|
} |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head2 setUPSRateOption() |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
Specifies the type of United Postal Service rates to use. |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
Calls: SetUserPreferences |
276
|
|
|
|
|
|
|
RequiredInput: No |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
# Argument: 'ns:UPSRateOptionCodeType' |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
=cut |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
sub setUPSRateOption { |
283
|
|
|
|
|
|
|
my $self = shift; |
284
|
|
|
|
|
|
|
$self->{'UPSRateOption'} = shift |
285
|
|
|
|
|
|
|
} |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
=head2 getUPSRateOption() |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
Calls: GetUserPreferences |
290
|
|
|
|
|
|
|
Returned: Conditionally |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
# Returns: 'ns:UPSRateOptionCodeType' |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
=cut |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
sub getUPSRateOption { |
297
|
|
|
|
|
|
|
my $self = shift; |
298
|
|
|
|
|
|
|
return $self->{'UPSRateOption'}; |
299
|
|
|
|
|
|
|
} |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
## Attribute and Property lists |
306
|
|
|
|
|
|
|
sub getPropertiesList { |
307
|
|
|
|
|
|
|
my $self = shift; |
308
|
|
|
|
|
|
|
return \@gaProperties; |
309
|
|
|
|
|
|
|
} |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
sub getAttributesList { |
312
|
|
|
|
|
|
|
my $self = shift; |
313
|
|
|
|
|
|
|
return \@gaAttributes; |
314
|
|
|
|
|
|
|
} |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
|
318
|
|
|
|
|
|
|
1; |