File Coverage

lib/eBay/API/XML/DataType/CharityIDType.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::CharityIDType;
4              
5 1     1   1326 use strict;
  1         2  
  1         33  
6 1     1   5 use warnings;
  1         3  
  1         57  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CharityIDType.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::CharityIDType
21              
22             =head1 DESCRIPTION
23              
24             Defines the affiliation status for a nonprofit charity
25             organization registered with the eBay Giving Works provider.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::CharityIDType inherits from the L class
37              
38             =cut
39              
40 1     1   44 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::Enum::CharityAffiliationTypeCodeType;
44              
45              
46             my @gaProperties = ( [ 'content', 'xs:string', '', '', '' ]
47             );
48             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
49              
50             my @gaAttributes = ( [ 'type', 'ns:CharityAffiliationTypeCodeType', ''
51             ,'eBay::API::XML::DataType::Enum::CharityAffiliationTypeCodeType', '' ]
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 setValue()
73              
74             # Argument: 'xs:string'
75              
76             =cut
77              
78             sub setValue {
79             my $self = shift;
80             $self->{'content'} = shift
81             }
82              
83             =head2 getValue()
84              
85             # Returns: 'xs:string'
86              
87             =cut
88              
89             sub getValue {
90             my $self = shift;
91             return $self->{'content'};
92             }
93              
94              
95              
96              
97             =head2 setType()
98              
99             Indicates the affiliation status of the nonprofit charity
100             organization registered with the eBay Giving Works provider.
101              
102             # Argument: 'ns:CharityAffiliationTypeCodeType'
103              
104             =cut
105              
106             sub setType {
107             my $self = shift;
108             $self->{'type'} = shift
109             }
110              
111             =head2 getType()
112              
113             Calls: GetUser
114             Returned: Conditionally
115             Details: DetailLevel: none, ReturnSummary, ReturnAll
116              
117             # Returns: 'ns:CharityAffiliationTypeCodeType'
118              
119             =cut
120              
121             sub getType {
122             my $self = shift;
123             return $self->{'type'};
124             }
125              
126              
127              
128             ## Attribute and Property lists
129             sub getPropertiesList {
130             my $self = shift;
131             return \@gaProperties;
132             }
133              
134             sub getAttributesList {
135             my $self = shift;
136             return \@gaAttributes;
137             }
138              
139              
140              
141             1;