File Coverage

lib/eBay/API/XML/DataType/ItemTotalsType.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::ItemTotalsType;
4              
5 1     1   1466 use strict;
  1         3  
  1         36  
6 1     1   7 use warnings;
  1         2  
  1         44  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ItemTotalsType.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::ItemTotalsType
21              
22             =head1 DESCRIPTION
23              
24             Details about items involved in the summary for the specified time period.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ItemTotalsType 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              
44              
45             my @gaProperties = ( [ 'TotalQuantity', 'xs:long', '', '', '' ]
46             , [ 'TotalValue', 'ns:AmountType', ''
47             ,'eBay::API::XML::DataType::AmountType', '1' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setTotalQuantity()
73              
74             Number of items involved in the summary.
75              
76             # Argument: 'xs:long'
77              
78             =cut
79              
80             sub setTotalQuantity {
81             my $self = shift;
82             $self->{'TotalQuantity'} = shift
83             }
84              
85             =head2 getTotalQuantity()
86              
87             # Returns: 'xs:long'
88              
89             =cut
90              
91             sub getTotalQuantity {
92             my $self = shift;
93             return $self->{'TotalQuantity'};
94             }
95              
96              
97             =head2 setTotalValue()
98              
99             Total value associated with the items in this summary.
100              
101             # Argument: 'ns:AmountType'
102              
103             =cut
104              
105             sub setTotalValue {
106             my $self = shift;
107             $self->{'TotalValue'} = shift
108             }
109              
110             =head2 getTotalValue()
111              
112             # Returns: 'ns:AmountType'
113              
114             =cut
115              
116             sub getTotalValue {
117             my $self = shift;
118             return $self->_getDataTypeInstance( 'TotalValue'
119             ,'eBay::API::XML::DataType::AmountType');
120             }
121              
122              
123              
124              
125              
126             ## Attribute and Property lists
127             sub getPropertiesList {
128             my $self = shift;
129             return \@gaProperties;
130             }
131              
132             sub getAttributesList {
133             my $self = shift;
134             return \@gaAttributes;
135             }
136              
137              
138              
139             1;