File Coverage

lib/eBay/API/XML/DataType/SellerFeeDiscountDashboardType.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::SellerFeeDiscountDashboardType;
4              
5 1     1   1246 use strict;
  1         3  
  1         31  
6 1     1   5 use warnings;
  1         2  
  1         31  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SellerFeeDiscountDashboardType.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::SellerFeeDiscountDashboardType
21              
22             =head1 DESCRIPTION
23              
24             PowerSeller discount information (e.g., to show in a Seller Dashboard).
25             As a PowerSeller, you can earn discounts on your monthly invoice Final Value Fees based on how well you're doing as a seller.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::SellerFeeDiscountDashboardType inherits from the L class
37              
38             =cut
39              
40 1     1   38 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43              
44              
45             my @gaProperties = ( [ 'Percent', 'xs:float', '', '', '' ]
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 setPercent()
71              
72             PowerSeller discount as a percentage. For example, a 5% discount is returned as 0.05.
73              
74             # Argument: 'xs:float'
75              
76             =cut
77              
78             sub setPercent {
79             my $self = shift;
80             $self->{'Percent'} = shift
81             }
82              
83             =head2 getPercent()
84              
85             Calls: GetSellerDashboard
86             Returned: Conditionally
87              
88             # Returns: 'xs:float'
89              
90             =cut
91              
92             sub getPercent {
93             my $self = shift;
94             return $self->{'Percent'};
95             }
96              
97              
98              
99              
100              
101             ## Attribute and Property lists
102             sub getPropertiesList {
103             my $self = shift;
104             return \@gaProperties;
105             }
106              
107             sub getAttributesList {
108             my $self = shift;
109             return \@gaAttributes;
110             }
111              
112              
113              
114             1;