File Coverage

lib/eBay/API/XML/DataType/BasicAmountType.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::BasicAmountType;
4              
5 1     1   1181 use strict;
  1         2  
  1         31  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. BasicAmountType.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::BasicAmountType
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::DataType::BasicAmountType inherits from the L class
34              
35             =cut
36              
37 1     1   35 use eBay::API::XML::BaseDataType;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseDataType");
39              
40             use eBay::API::XML::DataType::Enum::CurrencyCodeType;
41              
42              
43             my @gaProperties = ( [ 'content', 'xs:string', '', '', '' ]
44             );
45             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
46              
47             my @gaAttributes = ( [ 'currencyID', 'ns:CurrencyCodeType', ''
48             ,'eBay::API::XML::DataType::Enum::CurrencyCodeType', '' ]
49             );
50             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
51              
52             =head1 Subroutines:
53              
54             =cut
55              
56             sub new {
57             my $classname = shift;
58             my %args = @_;
59             my $self = $classname->SUPER::new(%args);
60             return $self;
61             }
62              
63             sub isScalar {
64             return 0;
65             }
66              
67              
68              
69             =head2 setValue()
70              
71             # Argument: 'xs:string'
72              
73             =cut
74              
75             sub setValue {
76             my $self = shift;
77             $self->{'content'} = shift
78             }
79              
80             =head2 getValue()
81              
82             # Returns: 'xs:string'
83              
84             =cut
85              
86             sub getValue {
87             my $self = shift;
88             return $self->{'content'};
89             }
90              
91              
92              
93              
94             =head2 setCurrencyID()
95              
96             # Argument: 'ns:CurrencyCodeType'
97              
98             =cut
99              
100             sub setCurrencyID {
101             my $self = shift;
102             $self->{'currencyID'} = shift
103             }
104              
105             =head2 getCurrencyID()
106              
107             # Returns: 'ns:CurrencyCodeType'
108              
109             =cut
110              
111             sub getCurrencyID {
112             my $self = shift;
113             return $self->{'currencyID'};
114             }
115              
116              
117              
118             ## Attribute and Property lists
119             sub getPropertiesList {
120             my $self = shift;
121             return \@gaProperties;
122             }
123              
124             sub getAttributesList {
125             my $self = shift;
126             return \@gaAttributes;
127             }
128              
129              
130              
131             1;