File Coverage

lib/eBay/API/XML/Call/GetStore/GetStoreRequestType.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::Call::GetStore::GetStoreRequestType;
4              
5 1     1   1429 use strict;
  1         2  
  1         29  
6 1     1   5 use warnings;
  1         1  
  1         37  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetStoreRequestType.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::Call::GetStore::GetStoreRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves configuration information for the eBay store of the store owner
25             specified with UserID. If no UserID is specified, the store configuration
26             information is returned for the caller.
27             The return value from GetStoreResponse is a StoreType, which contains
28             the store configuration, including the store name, URL, subscription level, and
29             other data. You can set CategoryStructureOnly to true to retrieve only
30             information about the category hierarchy of the store.
31              
32              
33              
34             =head1 SYNOPSIS
35              
36             =cut
37              
38              
39             =head1 INHERITANCE
40              
41             eBay::API::XML::Call::GetStore::GetStoreRequestType inherits from the L class
42              
43             =cut
44              
45 1     1   58 use eBay::API::XML::RequestDataType;
  0            
  0            
46             our @ISA = ("eBay::API::XML::RequestDataType");
47              
48             use eBay::API::XML::DataType::UserIDType;
49              
50              
51             my @gaProperties = ( [ 'CategoryStructureOnly', 'xs:boolean', '', '', '' ]
52             , [ 'LevelLimit', 'xs:int', '', '', '' ]
53             , [ 'RootCategoryID', 'xs:long', '', '', '' ]
54             , [ 'UserID', 'ns:UserIDType', ''
55             ,'eBay::API::XML::DataType::UserIDType', '1' ]
56             );
57             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
58              
59             my @gaAttributes = (
60             );
61             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
62              
63             =head1 Subroutines:
64              
65             =cut
66              
67             sub new {
68             my $classname = shift;
69             my %args = @_;
70             my $self = $classname->SUPER::new(%args);
71             return $self;
72             }
73              
74             sub isScalar {
75             return 0;
76             }
77              
78              
79              
80             =head2 setCategoryStructureOnly()
81              
82             If this is set to True, only the category structure of the store is
83             returned. If this is not specified or set to False, the complete store
84             configuration is returned.
85              
86             RequiredInput: Conditionally
87             # Argument: 'xs:boolean'
88              
89             =cut
90              
91             sub setCategoryStructureOnly {
92             my $self = shift;
93             $self->{'CategoryStructureOnly'} = shift
94             }
95              
96             =head2 isCategoryStructureOnly()
97              
98             # Returns: 'xs:boolean'
99              
100             =cut
101              
102             sub isCategoryStructureOnly {
103             my $self = shift;
104             return $self->{'CategoryStructureOnly'};
105             }
106              
107              
108             =head2 setLevelLimit()
109              
110             Specifies the limit for the number of levels of the category hierarchy
111             to return, where the given root category is level 1 and its children are
112             level 2. Only categories at or above the level specified are returned.
113             This tag is optional. If LevelLimit is not set, the complete category
114             hierarchy is returned. Stores support category hierarchies up to 3
115             levels only.
116              
117             RequiredInput: Conditionally
118             # Argument: 'xs:int'
119              
120             =cut
121              
122             sub setLevelLimit {
123             my $self = shift;
124             $self->{'LevelLimit'} = shift
125             }
126              
127             =head2 getLevelLimit()
128              
129             # Returns: 'xs:int'
130              
131             =cut
132              
133             sub getLevelLimit {
134             my $self = shift;
135             return $self->{'LevelLimit'};
136             }
137              
138              
139             =head2 setRootCategoryID()
140              
141             Specifies the category ID for the topmost category to return (along with
142             the subcategories under it, the value of the LevelLimit property
143             determining how deep). This tag is optional. If RootCategoryID is not
144             specified, then the category tree starting at that root Category is
145             returned.
146              
147             RequiredInput: Conditionally
148             # Argument: 'xs:long'
149              
150             =cut
151              
152             sub setRootCategoryID {
153             my $self = shift;
154             $self->{'RootCategoryID'} = shift
155             }
156              
157             =head2 getRootCategoryID()
158              
159             # Returns: 'xs:long'
160              
161             =cut
162              
163             sub getRootCategoryID {
164             my $self = shift;
165             return $self->{'RootCategoryID'};
166             }
167              
168              
169             =head2 setUserID()
170              
171             Specifies the user whose store data is to be returned. If not specified,
172             then the store returned is that for the requesting user.
173              
174             RequiredInput: No
175             # Argument: 'ns:UserIDType'
176              
177             =cut
178              
179             sub setUserID {
180             my $self = shift;
181             $self->{'UserID'} = shift
182             }
183              
184             =head2 getUserID()
185              
186             # Returns: 'ns:UserIDType'
187              
188             =cut
189              
190             sub getUserID {
191             my $self = shift;
192             return $self->_getDataTypeInstance( 'UserID'
193             ,'eBay::API::XML::DataType::UserIDType');
194             }
195              
196              
197              
198              
199              
200             ## Attribute and Property lists
201             sub getPropertiesList {
202             my $self = shift;
203             return \@gaProperties;
204             }
205              
206             sub getAttributesList {
207             my $self = shift;
208             return \@gaAttributes;
209             }
210              
211              
212              
213             1;