#!/usr/bin/perl

package eBay::API::XML::DataType::CharityAffiliationsType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. CharityAffiliationsType.pm
# Generated by: ......... genEBayApiDataTypes.pl
# Last Generated: ....... 08/24/2008 16:44
# API Release Number: ... 579
#
##########################################################################  

=head1 NAME

eBay::API::XML::DataType::CharityAffiliationsType

=head1 DESCRIPTION

Lists the nonprofit charity organization affiliations for a specified user.



=head1 SYNOPSIS

=cut


=head1 INHERITANCE

eBay::API::XML::DataType::CharityAffiliationsType inherits from the L<eBay::API::XML::BaseDataType> class

=cut

use eBay::API::XML::BaseDataType;
our @ISA = ("eBay::API::XML::BaseDataType");

use eBay::API::XML::DataType::CharityIDType;


my @gaProperties = ( [ 'CharityID', 'ns:CharityIDType', '1'
	     ,'eBay::API::XML::DataType::CharityIDType', '1' ]
                    );
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};

my @gaAttributes = ( 
                    );
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};

=head1 Subroutines:

=cut

sub new {
  my $classname = shift;
  my %args = @_;
  my $self = $classname->SUPER::new(%args);
  return $self;
}

sub isScalar {
   return 0; 
}



=head2 setCharityID()

Indicates the affiliation status for nonprofit charity organizations
registered with the dedicated eBay Giving Works provider.

#    Argument: reference to an array  
                      of 'ns:CharityIDType'

=cut

sub setCharityID {
  my $self = shift;
  $self->{'CharityID'} = 
		$self->convertArray_To_RefToArrayIfNeeded(@_);
}

=head2 getCharityID()

  Calls: GetBidderList
  Returned: Conditionally

  Calls: GetUser
  Returned: Conditionally
  DeprecationDetails: NoOp
  Details: DetailLevel: none, ReturnSummary, ReturnAll
  UseInstead: User.SellerInfo.CharityAffiliationDetails.CharityAffiliationDetail.CharityID

  Calls: GetItemTransactions
         GetSellerTransactions
  Returned: Conditionally
  Details: DetailLevel: none, ReturnAll

#    Returns: reference to an array  
                      of 'ns:CharityIDType'

=cut

sub getCharityID {
  my $self = shift;
  return $self->_getDataTypeArray('CharityID');
}





##  Attribute and Property lists
sub getPropertiesList {
   my $self = shift;
   return \@gaProperties;
}

sub getAttributesList {
   my $self = shift;
   return \@gaAttributes;
}



1;