File Coverage

lib/eBay/API/XML/DataType/PictureManagerSubscriptionType.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::PictureManagerSubscriptionType;
4              
5 1     1   1093 use strict;
  1         2  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PictureManagerSubscriptionType.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::PictureManagerSubscriptionType
21              
22             =head1 DESCRIPTION
23              
24             Describes one type of Picture Manager subscription that is available.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::PictureManagerSubscriptionType inherits from the L class
36              
37             =cut
38              
39 1     1   38 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::AmountType;
43             use eBay::API::XML::DataType::Enum::PictureManagerSubscriptionLevelCodeType;
44              
45              
46             my @gaProperties = ( [ 'Fee', 'ns:AmountType', ''
47             ,'eBay::API::XML::DataType::AmountType', '1' ]
48             , [ 'StorageSize', 'xs:int', '', '', '' ]
49             , [ 'SubscriptionLevel', 'ns:PictureManagerSubscriptionLevelCodeType', ''
50             ,'eBay::API::XML::DataType::Enum::PictureManagerSubscriptionLevelCodeType', '' ]
51             );
52             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
53              
54             my @gaAttributes = (
55             );
56             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
57              
58             =head1 Subroutines:
59              
60             =cut
61              
62             sub new {
63             my $classname = shift;
64             my %args = @_;
65             my $self = $classname->SUPER::new(%args);
66             return $self;
67             }
68              
69             sub isScalar {
70             return 0;
71             }
72              
73              
74              
75             =head2 setFee()
76              
77             The monthly fee for the subscription. Read-only value.
78              
79             # Argument: 'ns:AmountType'
80              
81             =cut
82              
83             sub setFee {
84             my $self = shift;
85             $self->{'Fee'} = shift
86             }
87              
88             =head2 getFee()
89              
90             Calls: GetPictureManagerOptions
91             Returned: Always
92              
93             # Returns: 'ns:AmountType'
94              
95             =cut
96              
97             sub getFee {
98             my $self = shift;
99             return $self->_getDataTypeInstance( 'Fee'
100             ,'eBay::API::XML::DataType::AmountType');
101             }
102              
103              
104             =head2 setStorageSize()
105              
106             The total amount of storage space available for the subscription type.
107             Read-only value.
108              
109             # Argument: 'xs:int'
110              
111             =cut
112              
113             sub setStorageSize {
114             my $self = shift;
115             $self->{'StorageSize'} = shift
116             }
117              
118             =head2 getStorageSize()
119              
120             Calls: GetPictureManagerOptions
121             Returned: Always
122              
123             # Returns: 'xs:int'
124              
125             =cut
126              
127             sub getStorageSize {
128             my $self = shift;
129             return $self->{'StorageSize'};
130             }
131              
132              
133             =head2 setSubscriptionLevel()
134              
135             The level of Picture Manager subscription. Each level has a
136             monthly fee and provides a certain amount of storage space.
137              
138             # Argument: 'ns:PictureManagerSubscriptionLevelCodeType'
139              
140             =cut
141              
142             sub setSubscriptionLevel {
143             my $self = shift;
144             $self->{'SubscriptionLevel'} = shift
145             }
146              
147             =head2 getSubscriptionLevel()
148              
149             Calls: GetPictureManagerOptions
150             Returned: Always
151              
152             # Returns: 'ns:PictureManagerSubscriptionLevelCodeType'
153              
154             =cut
155              
156             sub getSubscriptionLevel {
157             my $self = shift;
158             return $self->{'SubscriptionLevel'};
159             }
160              
161              
162              
163              
164              
165             ## Attribute and Property lists
166             sub getPropertiesList {
167             my $self = shift;
168             return \@gaProperties;
169             }
170              
171             sub getAttributesList {
172             my $self = shift;
173             return \@gaAttributes;
174             }
175              
176              
177              
178             1;