File Coverage

lib/eBay/API/XML/DataType/StoreLogoType.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::StoreLogoType;
4              
5 1     1   1556 use strict;
  1         3  
  1         29  
6 1     1   6 use warnings;
  1         1  
  1         35  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. StoreLogoType.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::StoreLogoType
21              
22             =head1 DESCRIPTION
23              
24             Store logo.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::StoreLogoType inherits from the L class
36              
37             =cut
38              
39 1     1   37 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'LogoID', 'xs:int', '', '', '' ]
45             , [ 'Name', 'xs:string', '', '', '' ]
46             , [ 'URL', 'xs:anyURI', '', '', '' ]
47             );
48             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
49              
50             my @gaAttributes = (
51             );
52             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
53              
54             =head1 Subroutines:
55              
56             =cut
57              
58             sub new {
59             my $classname = shift;
60             my %args = @_;
61             my $self = $classname->SUPER::new(%args);
62             return $self;
63             }
64              
65             sub isScalar {
66             return 0;
67             }
68              
69              
70              
71             =head2 setLogoID()
72              
73             Store logo ID (use GetStoreOptions to get the list of valid logo IDs).
74              
75             Calls: SetStore
76             RequiredInput: Conditionally
77              
78             # Argument: 'xs:int'
79              
80             =cut
81              
82             sub setLogoID {
83             my $self = shift;
84             $self->{'LogoID'} = shift
85             }
86              
87             =head2 getLogoID()
88              
89             Calls: GetStore
90             Returned: Conditionally
91              
92             Calls: GetStoreOptions
93             Returned: Always
94              
95             # Returns: 'xs:int'
96              
97             =cut
98              
99             sub getLogoID {
100             my $self = shift;
101             return $self->{'LogoID'};
102             }
103              
104              
105             =head2 setName()
106              
107             Store logo name. Provides a user-friendly name for the logo.
108              
109             Calls: SetStore
110             RequiredInput: Conditionally
111              
112             # Argument: 'xs:string'
113              
114             =cut
115              
116             sub setName {
117             my $self = shift;
118             $self->{'Name'} = shift
119             }
120              
121             =head2 getName()
122              
123             Calls: GetStore
124             Returned: Conditionally
125              
126             Calls: GetStoreOptions
127             Returned: Always
128              
129             # Returns: 'xs:string'
130              
131             =cut
132              
133             sub getName {
134             my $self = shift;
135             return $self->{'Name'};
136             }
137              
138              
139             =head2 setURL()
140              
141             URL of the logo. Must have a .gif or .jpg extention. Specified when
142             you are using a customized logo.
143              
144             Calls: SetStore
145             RequiredInput: Conditionally
146              
147             # Argument: 'xs:anyURI'
148              
149             =cut
150              
151             sub setURL {
152             my $self = shift;
153             $self->{'URL'} = shift
154             }
155              
156             =head2 getURL()
157              
158             Calls: GetStore
159             Returned: Conditionally
160              
161             # Returns: 'xs:anyURI'
162              
163             =cut
164              
165             sub getURL {
166             my $self = shift;
167             return $self->{'URL'};
168             }
169              
170              
171              
172              
173              
174             ## Attribute and Property lists
175             sub getPropertiesList {
176             my $self = shift;
177             return \@gaProperties;
178             }
179              
180             sub getAttributesList {
181             my $self = shift;
182             return \@gaAttributes;
183             }
184              
185              
186              
187             1;