| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::FlatShippingPreferencesType; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1305
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
33
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
36
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. FlatShippingPreferencesType.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::FlatShippingPreferencesType |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Flat shipping preferences. |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::FlatShippingPreferencesType inherits from the L class |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
|
38
|
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
47
|
use eBay::API::XML::BaseDataType; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AmountType; |
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::FlatRateInsuranceRangeCostType; |
|
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::FlatShippingRateOptionCodeType; |
|
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::InsuranceOptionCodeType; |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my @gaProperties = ( [ 'AmountPerAdditionalItem', 'ns:AmountType', '' |
|
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
|
50
|
|
|
|
|
|
|
, [ 'DeductionAmountPerAdditionalItem', 'ns:AmountType', '' |
|
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
|
52
|
|
|
|
|
|
|
, [ 'FlatRateInsuranceRangeCost', 'ns:FlatRateInsuranceRangeCostType', '1' |
|
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::FlatRateInsuranceRangeCostType', '1' ] |
|
54
|
|
|
|
|
|
|
, [ 'FlatShippingRateOption', 'ns:FlatShippingRateOptionCodeType', '' |
|
55
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::FlatShippingRateOptionCodeType', '' ] |
|
56
|
|
|
|
|
|
|
, [ 'InsuranceOption', 'ns:InsuranceOptionCodeType', '' |
|
57
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::InsuranceOptionCodeType', '' ] |
|
58
|
|
|
|
|
|
|
); |
|
59
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
my @gaAttributes = ( |
|
62
|
|
|
|
|
|
|
); |
|
63
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::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 setAmountPerAdditionalItem() |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
If the user specifies ChargeAmountForEachAdditionalItem for |
|
85
|
|
|
|
|
|
|
FlatShippingRateOption, then this value is used to specify how much to charge |
|
86
|
|
|
|
|
|
|
for each additional item. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Calls: SetUserPreferences |
|
89
|
|
|
|
|
|
|
RequiredInput: No |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub setAmountPerAdditionalItem { |
|
96
|
|
|
|
|
|
|
my $self = shift; |
|
97
|
|
|
|
|
|
|
$self->{'AmountPerAdditionalItem'} = shift |
|
98
|
|
|
|
|
|
|
} |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 getAmountPerAdditionalItem() |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Calls: GetUserPreferences |
|
103
|
|
|
|
|
|
|
Returned: Conditionally |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
sub getAmountPerAdditionalItem { |
|
110
|
|
|
|
|
|
|
my $self = shift; |
|
111
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'AmountPerAdditionalItem' |
|
112
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
|
113
|
|
|
|
|
|
|
} |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 setDeductionAmountPerAdditionalItem() |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
If the user specifies DeductAmountFromEachAdditionalItem for |
|
119
|
|
|
|
|
|
|
FlatShippingRateOption, then this value is used to specify how much to deduct |
|
120
|
|
|
|
|
|
|
for each additional item shipped. |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Calls: SetUserPreferences |
|
123
|
|
|
|
|
|
|
RequiredInput: No |
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
|
126
|
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=cut |
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
sub setDeductionAmountPerAdditionalItem { |
|
130
|
|
|
|
|
|
|
my $self = shift; |
|
131
|
|
|
|
|
|
|
$self->{'DeductionAmountPerAdditionalItem'} = shift |
|
132
|
|
|
|
|
|
|
} |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head2 getDeductionAmountPerAdditionalItem() |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
Calls: GetUserPreferences |
|
137
|
|
|
|
|
|
|
Returned: Conditionally |
|
138
|
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
|
140
|
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=cut |
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
sub getDeductionAmountPerAdditionalItem { |
|
144
|
|
|
|
|
|
|
my $self = shift; |
|
145
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'DeductionAmountPerAdditionalItem' |
|
146
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
|
147
|
|
|
|
|
|
|
} |
|
148
|
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=head2 setFlatRateInsuranceRangeCost() |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
For the given range, specifies the cost of insurance. If the InsuranceOption |
|
153
|
|
|
|
|
|
|
is either Optional or Required, then 6 instances of this field must be |
|
154
|
|
|
|
|
|
|
specified, one for each cost range. |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Calls: SetUserPreferences |
|
157
|
|
|
|
|
|
|
RequiredInput: No |
|
158
|
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
# Argument: reference to an array |
|
160
|
|
|
|
|
|
|
of 'ns:FlatRateInsuranceRangeCostType' |
|
161
|
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=cut |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
sub setFlatRateInsuranceRangeCost { |
|
165
|
|
|
|
|
|
|
my $self = shift; |
|
166
|
|
|
|
|
|
|
$self->{'FlatRateInsuranceRangeCost'} = |
|
167
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
|
168
|
|
|
|
|
|
|
} |
|
169
|
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=head2 getFlatRateInsuranceRangeCost() |
|
171
|
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
Calls: GetUserPreferences |
|
173
|
|
|
|
|
|
|
Returned: Conditionally |
|
174
|
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
# Returns: reference to an array |
|
176
|
|
|
|
|
|
|
of 'ns:FlatRateInsuranceRangeCostType' |
|
177
|
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=cut |
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
sub getFlatRateInsuranceRangeCost { |
|
181
|
|
|
|
|
|
|
my $self = shift; |
|
182
|
|
|
|
|
|
|
return $self->_getDataTypeArray('FlatRateInsuranceRangeCost'); |
|
183
|
|
|
|
|
|
|
} |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head2 setFlatShippingRateOption() |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
Specifies how the user wants flat-rate shipping to be calculated. |
|
189
|
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
Calls: SetUserPreferences |
|
191
|
|
|
|
|
|
|
RequiredInput: No |
|
192
|
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
# Argument: 'ns:FlatShippingRateOptionCodeType' |
|
194
|
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=cut |
|
196
|
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
sub setFlatShippingRateOption { |
|
198
|
|
|
|
|
|
|
my $self = shift; |
|
199
|
|
|
|
|
|
|
$self->{'FlatShippingRateOption'} = shift |
|
200
|
|
|
|
|
|
|
} |
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 getFlatShippingRateOption() |
|
203
|
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Calls: GetUserPreferences |
|
205
|
|
|
|
|
|
|
Returned: Conditionally |
|
206
|
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
# Returns: 'ns:FlatShippingRateOptionCodeType' |
|
208
|
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=cut |
|
210
|
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
sub getFlatShippingRateOption { |
|
212
|
|
|
|
|
|
|
my $self = shift; |
|
213
|
|
|
|
|
|
|
return $self->{'FlatShippingRateOption'}; |
|
214
|
|
|
|
|
|
|
} |
|
215
|
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=head2 setInsuranceOption() |
|
218
|
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
Whether the seller offers shipping insurance and, if |
|
220
|
|
|
|
|
|
|
so, whether the insurance is optional or required. Flat and |
|
221
|
|
|
|
|
|
|
calculated shipping. |
|
222
|
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
Calls: SetUserPreferences |
|
224
|
|
|
|
|
|
|
RequiredInput: No |
|
225
|
|
|
|
|
|
|
AllValuesExcept: NotOfferedOnSite |
|
226
|
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
# Argument: 'ns:InsuranceOptionCodeType' |
|
228
|
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
=cut |
|
230
|
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
sub setInsuranceOption { |
|
232
|
|
|
|
|
|
|
my $self = shift; |
|
233
|
|
|
|
|
|
|
$self->{'InsuranceOption'} = shift |
|
234
|
|
|
|
|
|
|
} |
|
235
|
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
=head2 getInsuranceOption() |
|
237
|
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
Calls: GetUserPreferences |
|
239
|
|
|
|
|
|
|
Returned: Conditionally |
|
240
|
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
# Returns: 'ns:InsuranceOptionCodeType' |
|
242
|
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
=cut |
|
244
|
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
sub getInsuranceOption { |
|
246
|
|
|
|
|
|
|
my $self = shift; |
|
247
|
|
|
|
|
|
|
return $self->{'InsuranceOption'}; |
|
248
|
|
|
|
|
|
|
} |
|
249
|
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
## Attribute and Property lists |
|
255
|
|
|
|
|
|
|
sub getPropertiesList { |
|
256
|
|
|
|
|
|
|
my $self = shift; |
|
257
|
|
|
|
|
|
|
return \@gaProperties; |
|
258
|
|
|
|
|
|
|
} |
|
259
|
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
sub getAttributesList { |
|
261
|
|
|
|
|
|
|
my $self = shift; |
|
262
|
|
|
|
|
|
|
return \@gaAttributes; |
|
263
|
|
|
|
|
|
|
} |
|
264
|
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
1; |