File Coverage

lib/eBay/API/XML/DataType/CharityAffiliationType.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::CharityAffiliationType;
4              
5 1     1   1289 use strict;
  1         2  
  1         31  
6 1     1   5 use warnings;
  1         3  
  1         29  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CharityAffiliationType.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::CharityAffiliationType
21              
22             =head1 DESCRIPTION
23              
24             Defines the affiliation status for a nonprofit charity organization registered with the dedicated eBay Giving Works provider.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::CharityAffiliationType 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::Enum::CharityAffiliationTypeCodeType;
43              
44              
45             my @gaProperties = (
46             );
47             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
48              
49             my @gaAttributes = ( [ 'id', 'xs:string', '', '', '' ]
50             , [ '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              
73              
74             =head2 setId()
75              
76             # Argument: 'xs:string'
77              
78             =cut
79              
80             sub setId {
81             my $self = shift;
82             $self->{'id'} = shift
83             }
84              
85             =head2 getId()
86              
87             # Returns: 'xs:string'
88              
89             =cut
90              
91             sub getId {
92             my $self = shift;
93             return $self->{'id'};
94             }
95              
96              
97             =head2 setType()
98              
99             # Argument: 'ns:CharityAffiliationTypeCodeType'
100              
101             =cut
102              
103             sub setType {
104             my $self = shift;
105             $self->{'type'} = shift
106             }
107              
108             =head2 getType()
109              
110             # Returns: 'ns:CharityAffiliationTypeCodeType'
111              
112             =cut
113              
114             sub getType {
115             my $self = shift;
116             return $self->{'type'};
117             }
118              
119              
120              
121             ## Attribute and Property lists
122             sub getPropertiesList {
123             my $self = shift;
124             return \@gaProperties;
125             }
126              
127             sub getAttributesList {
128             my $self = shift;
129             return \@gaAttributes;
130             }
131              
132              
133              
134             1;