File Coverage

lib/eBay/API/XML/DataType/SellerDashboardAlertType.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::SellerDashboardAlertType;
4              
5 1     1   1152 use strict;
  1         2  
  1         30  
6 1     1   5 use warnings;
  1         3  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SellerDashboardAlertType.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::SellerDashboardAlertType
21              
22             =head1 DESCRIPTION
23              
24             A message to help the you understand your status as a seller (PowerSeller status,
25             policy compliance status, etc.).
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::SellerDashboardAlertType inherits from the L class
37              
38             =cut
39              
40 1     1   34 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::Enum::SellerDashboardAlertSeverityCodeType;
44              
45              
46             my @gaProperties = ( [ 'Severity', 'ns:SellerDashboardAlertSeverityCodeType', ''
47             ,'eBay::API::XML::DataType::Enum::SellerDashboardAlertSeverityCodeType', '' ]
48             , [ 'Text', 'xs:string', '', '', '' ]
49             );
50             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
51              
52             my @gaAttributes = (
53             );
54             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
55              
56             =head1 Subroutines:
57              
58             =cut
59              
60             sub new {
61             my $classname = shift;
62             my %args = @_;
63             my $self = $classname->SUPER::new(%args);
64             return $self;
65             }
66              
67             sub isScalar {
68             return 0;
69             }
70              
71              
72              
73             =head2 setSeverity()
74              
75             Helps you understand whether the alert is identifying a problem
76             or is informational.
77              
78             # Argument: 'ns:SellerDashboardAlertSeverityCodeType'
79              
80             =cut
81              
82             sub setSeverity {
83             my $self = shift;
84             $self->{'Severity'} = shift
85             }
86              
87             =head2 getSeverity()
88              
89             Calls: GetSellerDashboard
90             Returned: Conditionally
91              
92             # Returns: 'ns:SellerDashboardAlertSeverityCodeType'
93              
94             =cut
95              
96             sub getSeverity {
97             my $self = shift;
98             return $self->{'Severity'};
99             }
100              
101              
102             =head2 setText()
103              
104             The alert text. When you parse this text, you should assume that
105             some alerts may use plain text and some may include HTML.
106              
107             # Argument: 'xs:string'
108              
109             =cut
110              
111             sub setText {
112             my $self = shift;
113             $self->{'Text'} = shift
114             }
115              
116             =head2 getText()
117              
118             Calls: GetSellerDashboard
119             Returned: Conditionally
120              
121             # Returns: 'xs:string'
122              
123             =cut
124              
125             sub getText {
126             my $self = shift;
127             return $self->{'Text'};
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;