line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ShippingPackageDetailsType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1350
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
41
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ShippingPackageDetailsType.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::ShippingPackageDetailsType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Details about type of package used to ship an item. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::ShippingPackageDetailsType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
51
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::ShippingPackageCodeType; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Default', 'xs:boolean', '', '', '' ] |
46
|
|
|
|
|
|
|
, [ 'Description', 'xs:string', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'PackageID', 'xs:int', '', '', '' ] |
48
|
|
|
|
|
|
|
, [ 'ShippingPackage', 'ns:ShippingPackageCodeType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::ShippingPackageCodeType', '' ] |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my @gaAttributes = ( |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 Subroutines: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub new { |
62
|
|
|
|
|
|
|
my $classname = shift; |
63
|
|
|
|
|
|
|
my %args = @_; |
64
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
65
|
|
|
|
|
|
|
return $self; |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub isScalar { |
69
|
|
|
|
|
|
|
return 0; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 setDefault() |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Indicates if the package type is the default for the specified site. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
sub setDefault { |
83
|
|
|
|
|
|
|
my $self = shift; |
84
|
|
|
|
|
|
|
$self->{'Default'} = shift |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 isDefault() |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Calls: GeteBayDetails |
90
|
|
|
|
|
|
|
Returned: Conditionally |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub isDefault { |
97
|
|
|
|
|
|
|
my $self = shift; |
98
|
|
|
|
|
|
|
return $self->{'Default'}; |
99
|
|
|
|
|
|
|
} |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 setDescription() |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Full name of the shipping package for display purposes. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# Argument: 'xs:string' |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=cut |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
sub setDescription { |
111
|
|
|
|
|
|
|
my $self = shift; |
112
|
|
|
|
|
|
|
$self->{'Description'} = shift |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 getDescription() |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Calls: GeteBayDetails |
118
|
|
|
|
|
|
|
Returned: Conditionally |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# Returns: 'xs:string' |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub getDescription { |
125
|
|
|
|
|
|
|
my $self = shift; |
126
|
|
|
|
|
|
|
return $self->{'Description'}; |
127
|
|
|
|
|
|
|
} |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head2 setPackageID() |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Numeric identifier. |
133
|
|
|
|
|
|
|
Some applications use this ID to look up shipping packages more efficiently. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
# Argument: 'xs:int' |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=cut |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
sub setPackageID { |
140
|
|
|
|
|
|
|
my $self = shift; |
141
|
|
|
|
|
|
|
$self->{'PackageID'} = shift |
142
|
|
|
|
|
|
|
} |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head2 getPackageID() |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Calls: GeteBayDetails |
147
|
|
|
|
|
|
|
Returned: Conditionally |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# Returns: 'xs:int' |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=cut |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub getPackageID { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
return $self->{'PackageID'}; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head2 setShippingPackage() |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Value used for the shipping package. |
162
|
|
|
|
|
|
|
For a list of valid values that you can cache for future use, call GeteBayDetails |
163
|
|
|
|
|
|
|
with DetailName set to ShippingPackageDetails. |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
# Argument: 'ns:ShippingPackageCodeType' |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
sub setShippingPackage { |
170
|
|
|
|
|
|
|
my $self = shift; |
171
|
|
|
|
|
|
|
$self->{'ShippingPackage'} = shift |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 getShippingPackage() |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
Calls: GeteBayDetails |
177
|
|
|
|
|
|
|
Returned: Conditionally |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
# Returns: 'ns:ShippingPackageCodeType' |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=cut |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub getShippingPackage { |
184
|
|
|
|
|
|
|
my $self = shift; |
185
|
|
|
|
|
|
|
return $self->{'ShippingPackage'}; |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
## Attribute and Property lists |
193
|
|
|
|
|
|
|
sub getPropertiesList { |
194
|
|
|
|
|
|
|
my $self = shift; |
195
|
|
|
|
|
|
|
return \@gaProperties; |
196
|
|
|
|
|
|
|
} |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
sub getAttributesList { |
199
|
|
|
|
|
|
|
my $self = shift; |
200
|
|
|
|
|
|
|
return \@gaAttributes; |
201
|
|
|
|
|
|
|
} |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
1; |