File Coverage

lib/eBay/API/XML/DataType/BuyerSatisfactionDashboardType.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::BuyerSatisfactionDashboardType;
4              
5 1     1   1046 use strict;
  1         2  
  1         27  
6 1     1   4 use warnings;
  1         1  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. BuyerSatisfactionDashboardType.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::BuyerSatisfactionDashboardType
21              
22             =head1 DESCRIPTION
23              
24             Container for fields related to buyer satisfaction.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::BuyerSatisfactionDashboardType inherits from the L class
36              
37             =cut
38              
39 1     1   33 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::SellerDashboardAlertType;
43             use eBay::API::XML::DataType::Enum::BuyerSatisfactionStatusCodeType;
44              
45              
46             my @gaProperties = ( [ 'Alert', 'ns:SellerDashboardAlertType', '1'
47             ,'eBay::API::XML::DataType::SellerDashboardAlertType', '1' ]
48             , [ 'Status', 'ns:BuyerSatisfactionStatusCodeType', ''
49             ,'eBay::API::XML::DataType::Enum::BuyerSatisfactionStatusCodeType', '' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setAlert()
75              
76             A message to help you understand your buyer satisfaction status.
77              
78             # Argument: reference to an array
79             of 'ns:SellerDashboardAlertType'
80              
81             =cut
82              
83             sub setAlert {
84             my $self = shift;
85             $self->{'Alert'} =
86             $self->convertArray_To_RefToArrayIfNeeded(@_);
87             }
88              
89             =head2 getAlert()
90              
91             Calls: GetSellerDashboard
92             Returned: Conditionally
93              
94             # Returns: reference to an array
95             of 'ns:SellerDashboardAlertType'
96              
97             =cut
98              
99             sub getAlert {
100             my $self = shift;
101             return $self->_getDataTypeArray('Alert');
102             }
103              
104              
105             =head2 setStatus()
106              
107             Your buyer satisfaction rating (as a qualitative summary). To determine this rating,
108             eBay considers your detailed seller ratings, your overall feedback rating,
109             and whatever buyer protection claims may exist on your account.
110             eBay uses the buyer satisfaction rating to see if you are eligible for certain rewards
111             or need additional guidance to help you give better service.
112              
113             # Argument: 'ns:BuyerSatisfactionStatusCodeType'
114              
115             =cut
116              
117             sub setStatus {
118             my $self = shift;
119             $self->{'Status'} = shift
120             }
121              
122             =head2 getStatus()
123              
124             Calls: GetSellerDashboard
125             Returned: Conditionally
126              
127             # Returns: 'ns:BuyerSatisfactionStatusCodeType'
128              
129             =cut
130              
131             sub getStatus {
132             my $self = shift;
133             return $self->{'Status'};
134             }
135              
136              
137              
138              
139              
140             ## Attribute and Property lists
141             sub getPropertiesList {
142             my $self = shift;
143             return \@gaProperties;
144             }
145              
146             sub getAttributesList {
147             my $self = shift;
148             return \@gaAttributes;
149             }
150              
151              
152              
153             1;