File Coverage

lib/eBay/API/XML/DataType/LiveAuctionApprovalStatusType.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::LiveAuctionApprovalStatusType;
4              
5 1     1   1625 use strict;
  1         3  
  1         42  
6 1     1   6 use warnings;
  1         2  
  1         33  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. LiveAuctionApprovalStatusType.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::LiveAuctionApprovalStatusType
21              
22             =head1 DESCRIPTION
23              
24             The approval status of a user who wants to bid on a live auction.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::LiveAuctionApprovalStatusType inherits from the L class
36              
37             =cut
38              
39 1     1   46 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::UserIDType;
43              
44              
45             my @gaProperties = ( [ 'Status', 'xs:string', '', '', '' ]
46             , [ 'UserID', 'ns:UserIDType', ''
47             ,'eBay::API::XML::DataType::UserIDType', '1' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
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 setStatus()
73              
74             The bidder's approval status. Possible values are Approvied, Denied,
75             or a message indicating a problem that prevented the bidder from
76             being approved (or denied), such as an invalid ApproveBiddingLimit value.
77              
78             # Argument: 'xs:string'
79              
80             =cut
81              
82             sub setStatus {
83             my $self = shift;
84             $self->{'Status'} = shift
85             }
86              
87             =head2 getStatus()
88              
89             Calls: ApproveLiveAuctionBidders
90             Returned: Always
91              
92             # Returns: 'xs:string'
93              
94             =cut
95              
96             sub getStatus {
97             my $self = shift;
98             return $self->{'Status'};
99             }
100              
101              
102             =head2 setUserID()
103              
104             User ID of the bidder.
105              
106             # Argument: 'ns:UserIDType'
107              
108             =cut
109              
110             sub setUserID {
111             my $self = shift;
112             $self->{'UserID'} = shift
113             }
114              
115             =head2 getUserID()
116              
117             Calls: ApproveLiveAuctionBidders
118             Returned: Always
119              
120             # Returns: 'ns:UserIDType'
121              
122             =cut
123              
124             sub getUserID {
125             my $self = shift;
126             return $self->_getDataTypeInstance( 'UserID'
127             ,'eBay::API::XML::DataType::UserIDType');
128             }
129              
130              
131              
132              
133              
134             ## Attribute and Property lists
135             sub getPropertiesList {
136             my $self = shift;
137             return \@gaProperties;
138             }
139              
140             sub getAttributesList {
141             my $self = shift;
142             return \@gaAttributes;
143             }
144              
145              
146              
147             1;