File Coverage

lib/eBay/API/XML/DataType/CalculatedShippingPreferencesType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::CalculatedShippingPreferencesType;
4              
5 1     1   986 use strict;
  1         2  
  1         23  
6 1     1   5 use warnings;
  1         1  
  1         24  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CalculatedShippingPreferencesType.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::CalculatedShippingPreferencesType
21              
22             =head1 DESCRIPTION
23              
24             Calculated shipping preferences for the user.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::CalculatedShippingPreferencesType inherits from the L class
36              
37             =cut
38              
39 1     1   39 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::Enum::CalculatedShippingChargeOptionCodeType;
44             use eBay::API::XML::DataType::Enum::CalculatedShippingRateOptionCodeType;
45             use eBay::API::XML::DataType::Enum::InsuranceOptionCodeType;
46              
47              
48             my @gaProperties = ( [ 'CalculatedShippingAmountForEntireOrder', 'ns:AmountType', ''
49             ,'eBay::API::XML::DataType::AmountType', '1' ]
50             , [ 'CalculatedShippingChargeOption', 'ns:CalculatedShippingChargeOptionCodeType', ''
51             ,'eBay::API::XML::DataType::Enum::CalculatedShippingChargeOptionCodeType', '' ]
52             , [ 'CalculatedShippingRateOption', 'ns:CalculatedShippingRateOptionCodeType', ''
53             ,'eBay::API::XML::DataType::Enum::CalculatedShippingRateOptionCodeType', '' ]
54             , [ 'InsuranceOption', 'ns:InsuranceOptionCodeType', ''
55             ,'eBay::API::XML::DataType::Enum::InsuranceOptionCodeType', '' ]
56             );
57             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
58              
59             my @gaAttributes = (
60             );
61             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
62              
63             =head1 Subroutines:
64              
65             =cut
66              
67             sub new {
68             my $classname = shift;
69             my %args = @_;
70             my $self = $classname->SUPER::new(%args);
71             return $self;
72             }
73              
74             sub isScalar {
75             return 0;
76             }
77              
78              
79              
80             =head2 setCalculatedShippingAmountForEntireOrder()
81              
82             The calculated shipping amount for the entire order.
83              
84             Calls: SetUserPreferences
85             RequiredInput: No
86              
87             # Argument: 'ns:AmountType'
88              
89             =cut
90              
91             sub setCalculatedShippingAmountForEntireOrder {
92             my $self = shift;
93             $self->{'CalculatedShippingAmountForEntireOrder'} = shift
94             }
95              
96             =head2 getCalculatedShippingAmountForEntireOrder()
97              
98             Calls: GetUserPreferences
99             Returned: Conditionally
100              
101             # Returns: 'ns:AmountType'
102              
103             =cut
104              
105             sub getCalculatedShippingAmountForEntireOrder {
106             my $self = shift;
107             return $self->_getDataTypeInstance( 'CalculatedShippingAmountForEntireOrder'
108             ,'eBay::API::XML::DataType::AmountType');
109             }
110              
111              
112             =head2 setCalculatedShippingChargeOption()
113              
114             Specifies whether to charge the actual shipping and handling cost for the entire order
115             or for each item.
116              
117             Calls: SetUserPreferences
118             RequiredInput: No
119              
120             # Argument: 'ns:CalculatedShippingChargeOptionCodeType'
121              
122             =cut
123              
124             sub setCalculatedShippingChargeOption {
125             my $self = shift;
126             $self->{'CalculatedShippingChargeOption'} = shift
127             }
128              
129             =head2 getCalculatedShippingChargeOption()
130              
131             Calls: GetUserPreferences
132             Returned: Conditionally
133              
134             # Returns: 'ns:CalculatedShippingChargeOptionCodeType'
135              
136             =cut
137              
138             sub getCalculatedShippingChargeOption {
139             my $self = shift;
140             return $self->{'CalculatedShippingChargeOption'};
141             }
142              
143              
144             =head2 setCalculatedShippingRateOption()
145              
146             Specifies whether to calculate the actual rate shipping based on the combined item weight
147             or the individual item weight.
148              
149             Calls: SetUserPreferences
150             RequiredInput: No
151              
152             # Argument: 'ns:CalculatedShippingRateOptionCodeType'
153              
154             =cut
155              
156             sub setCalculatedShippingRateOption {
157             my $self = shift;
158             $self->{'CalculatedShippingRateOption'} = shift
159             }
160              
161             =head2 getCalculatedShippingRateOption()
162              
163             Calls: GetUserPreferences
164             Returned: Conditionally
165              
166             # Returns: 'ns:CalculatedShippingRateOptionCodeType'
167              
168             =cut
169              
170             sub getCalculatedShippingRateOption {
171             my $self = shift;
172             return $self->{'CalculatedShippingRateOption'};
173             }
174              
175              
176             =head2 setInsuranceOption()
177              
178             Whether the seller offers shipping insurance and, if
179             so, whether the insurance is optional or required. Flat and
180             calculated shipping.
181              
182             Calls: SetUserPreferences
183             RequiredInput: No
184             AllValuesExcept: NotOfferedOnSite
185              
186             # Argument: 'ns:InsuranceOptionCodeType'
187              
188             =cut
189              
190             sub setInsuranceOption {
191             my $self = shift;
192             $self->{'InsuranceOption'} = shift
193             }
194              
195             =head2 getInsuranceOption()
196              
197             Calls: GetUserPreferences
198             Returned: Conditionally
199              
200             # Returns: 'ns:InsuranceOptionCodeType'
201              
202             =cut
203              
204             sub getInsuranceOption {
205             my $self = shift;
206             return $self->{'InsuranceOption'};
207             }
208              
209              
210              
211              
212              
213             ## Attribute and Property lists
214             sub getPropertiesList {
215             my $self = shift;
216             return \@gaProperties;
217             }
218              
219             sub getAttributesList {
220             my $self = shift;
221             return \@gaAttributes;
222             }
223              
224              
225              
226             1;