File Coverage

lib/eBay/API/XML/DataType/PolicyComplianceDashboardType.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::PolicyComplianceDashboardType;
4              
5 1     1   1212 use strict;
  1         2  
  1         31  
6 1     1   5 use warnings;
  1         1  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PolicyComplianceDashboardType.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::PolicyComplianceDashboardType
21              
22             =head1 DESCRIPTION
23              
24             Container for fields related to policy compliance.Communicate the Sellers current
25             status in terms of risk of facing TnS action(i.e. warnings, cancelled listings,
26             restrictions, suspension,violations.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::PolicyComplianceDashboardType inherits from the L class
38              
39             =cut
40              
41 1     1   52 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::SellerDashboardAlertType;
45             use eBay::API::XML::DataType::Enum::PolicyComplianceStatusCodeType;
46              
47              
48             my @gaProperties = ( [ 'Alert', 'ns:SellerDashboardAlertType', '1'
49             ,'eBay::API::XML::DataType::SellerDashboardAlertType', '1' ]
50             , [ 'Status', 'ns:PolicyComplianceStatusCodeType', ''
51             ,'eBay::API::XML::DataType::Enum::PolicyComplianceStatusCodeType', '' ]
52             );
53             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
54              
55             my @gaAttributes = (
56             );
57             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
58              
59             =head1 Subroutines:
60              
61             =cut
62              
63             sub new {
64             my $classname = shift;
65             my %args = @_;
66             my $self = $classname->SUPER::new(%args);
67             return $self;
68             }
69              
70             sub isScalar {
71             return 0;
72             }
73              
74              
75              
76             =head2 setAlert()
77              
78             A message to help you understand your eBay policy compliance status.
79              
80             # Argument: reference to an array
81             of 'ns:SellerDashboardAlertType'
82              
83             =cut
84              
85             sub setAlert {
86             my $self = shift;
87             $self->{'Alert'} =
88             $self->convertArray_To_RefToArrayIfNeeded(@_);
89             }
90              
91             =head2 getAlert()
92              
93             Calls: GetSellerDashboard
94             Returned: Conditionally
95              
96             # Returns: reference to an array
97             of 'ns:SellerDashboardAlertType'
98              
99             =cut
100              
101             sub getAlert {
102             my $self = shift;
103             return $self->_getDataTypeArray('Alert');
104             }
105              
106              
107             =head2 setStatus()
108              
109             Rates how well you are following eBay's policies.
110              
111             # Argument: 'ns:PolicyComplianceStatusCodeType'
112              
113             =cut
114              
115             sub setStatus {
116             my $self = shift;
117             $self->{'Status'} = shift
118             }
119              
120             =head2 getStatus()
121              
122             Calls: GetSellerDashboard
123             Returned: Conditionally
124              
125             # Returns: 'ns:PolicyComplianceStatusCodeType'
126              
127             =cut
128              
129             sub getStatus {
130             my $self = shift;
131             return $self->{'Status'};
132             }
133              
134              
135              
136              
137              
138             ## Attribute and Property lists
139             sub getPropertiesList {
140             my $self = shift;
141             return \@gaProperties;
142             }
143              
144             sub getAttributesList {
145             my $self = shift;
146             return \@gaAttributes;
147             }
148              
149              
150              
151             1;