File Coverage

lib/eBay/API/XML/DataType/UserIDType.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::UserIDType;
4              
5 1     1   1505 use strict;
  1         3  
  1         38  
6 1     1   5 use warnings;
  1         1  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. UserIDType.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::UserIDType
21              
22             =head1 DESCRIPTION
23              
24             An eBay ID that uniquely identifies a user.

For GetAllBidders,
25             some bidder information is anonymous, to protect bidders from fraud. If the seller makes this API call, the actual ids of all bidders on the seller's item will be returned. If a bidder makes this API call, the bidder's actual id will be returned, but information for all competing bidders or outside watchers will be returned as anonymized userIDs.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::UserIDType inherits from the L class
37              
38             =cut
39              
40 1     1   33 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43              
44              
45             my @gaProperties = ( [ 'content', 'xs:string', '', '', '' ]
46             );
47             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
48              
49             my @gaAttributes = (
50             );
51             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
52              
53             =head1 Subroutines:
54              
55             =cut
56              
57             sub new {
58             my $classname = shift;
59             my %args = @_;
60             my $self = $classname->SUPER::new(%args);
61             return $self;
62             }
63              
64             sub isScalar {
65             return 0;
66             }
67              
68              
69              
70             =head2 setValue()
71              
72             # Argument: 'xs:string'
73              
74             =cut
75              
76             sub setValue {
77             my $self = shift;
78             $self->{'content'} = shift
79             }
80              
81             =head2 getValue()
82              
83             # Returns: 'xs:string'
84              
85             =cut
86              
87             sub getValue {
88             my $self = shift;
89             return $self->{'content'};
90             }
91              
92              
93              
94              
95              
96             ## Attribute and Property lists
97             sub getPropertiesList {
98             my $self = shift;
99             return \@gaProperties;
100             }
101              
102             sub getAttributesList {
103             my $self = shift;
104             return \@gaAttributes;
105             }
106              
107              
108              
109             1;