File Coverage

lib/eBay/API/XML/DataType/CheckoutOrderDetailType.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::CheckoutOrderDetailType;
4              
5 1     1   1704 use strict;
  1         2  
  1         33  
6 1     1   6 use warnings;
  1         1  
  1         48  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CheckoutOrderDetailType.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::CheckoutOrderDetailType
21              
22             =head1 DESCRIPTION
23              
24             Details of the order for a checked out cart.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::CheckoutOrderDetailType inherits from the L class
36              
37             =cut
38              
39 1     1   50 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::AmountType;
43              
44              
45             my @gaProperties = ( [ 'TotalAmount', 'ns:AmountType', ''
46             ,'eBay::API::XML::DataType::AmountType', '1' ]
47             , [ 'TotalCartMerchandiseCost', 'ns:AmountType', ''
48             ,'eBay::API::XML::DataType::AmountType', '1' ]
49             , [ 'TotalCartShippingCost', 'ns:AmountType', ''
50             ,'eBay::API::XML::DataType::AmountType', '1' ]
51             , [ 'TotalTaxAmount', 'ns:AmountType', ''
52             ,'eBay::API::XML::DataType::AmountType', '1' ]
53             );
54             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
55              
56             my @gaAttributes = (
57             );
58             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
59              
60             =head1 Subroutines:
61              
62             =cut
63              
64             sub new {
65             my $classname = shift;
66             my %args = @_;
67             my $self = $classname->SUPER::new(%args);
68             return $self;
69             }
70              
71             sub isScalar {
72             return 0;
73             }
74              
75              
76              
77             =head2 setTotalAmount()
78              
79             The overall total cost (including item cost, shipping cost and taxes).
80              
81             # Argument: 'ns:AmountType'
82              
83             =cut
84              
85             sub setTotalAmount {
86             my $self = shift;
87             $self->{'TotalAmount'} = shift
88             }
89              
90             =head2 getTotalAmount()
91              
92             # Returns: 'ns:AmountType'
93              
94             =cut
95              
96             sub getTotalAmount {
97             my $self = shift;
98             return $self->_getDataTypeInstance( 'TotalAmount'
99             ,'eBay::API::XML::DataType::AmountType');
100             }
101              
102              
103             =head2 setTotalCartMerchandiseCost()
104              
105             The total item cost of all items in the cart.
106              
107             # Argument: 'ns:AmountType'
108              
109             =cut
110              
111             sub setTotalCartMerchandiseCost {
112             my $self = shift;
113             $self->{'TotalCartMerchandiseCost'} = shift
114             }
115              
116             =head2 getTotalCartMerchandiseCost()
117              
118             # Returns: 'ns:AmountType'
119              
120             =cut
121              
122             sub getTotalCartMerchandiseCost {
123             my $self = shift;
124             return $self->_getDataTypeInstance( 'TotalCartMerchandiseCost'
125             ,'eBay::API::XML::DataType::AmountType');
126             }
127              
128              
129             =head2 setTotalCartShippingCost()
130              
131             The total shipping cost of all items in the cart.
132              
133             # Argument: 'ns:AmountType'
134              
135             =cut
136              
137             sub setTotalCartShippingCost {
138             my $self = shift;
139             $self->{'TotalCartShippingCost'} = shift
140             }
141              
142             =head2 getTotalCartShippingCost()
143              
144             # Returns: 'ns:AmountType'
145              
146             =cut
147              
148             sub getTotalCartShippingCost {
149             my $self = shift;
150             return $self->_getDataTypeInstance( 'TotalCartShippingCost'
151             ,'eBay::API::XML::DataType::AmountType');
152             }
153              
154              
155             =head2 setTotalTaxAmount()
156              
157             The total tax for all items in the cart.
158              
159             # Argument: 'ns:AmountType'
160              
161             =cut
162              
163             sub setTotalTaxAmount {
164             my $self = shift;
165             $self->{'TotalTaxAmount'} = shift
166             }
167              
168             =head2 getTotalTaxAmount()
169              
170             # Returns: 'ns:AmountType'
171              
172             =cut
173              
174             sub getTotalTaxAmount {
175             my $self = shift;
176             return $self->_getDataTypeInstance( 'TotalTaxAmount'
177             ,'eBay::API::XML::DataType::AmountType');
178             }
179              
180              
181              
182              
183              
184             ## Attribute and Property lists
185             sub getPropertiesList {
186             my $self = shift;
187             return \@gaProperties;
188             }
189              
190             sub getAttributesList {
191             my $self = shift;
192             return \@gaAttributes;
193             }
194              
195              
196              
197             1;