File Coverage

lib/eBay/API/XML/Call/GetPopularKeywords/GetPopularKeywordsRequestType.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::GetPopularKeywords::GetPopularKeywordsRequestType;
4              
5 1     1   1376 use strict;
  1         1  
  1         25  
6 1     1   5 use warnings;
  1         2  
  1         27  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetPopularKeywordsRequestType.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::GetPopularKeywords::GetPopularKeywordsRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves the words more frequently used by eBay users when
25             searching for listings. These keywords are generated weekly by
26             eBay. Thus, calls retrieve static data. GetPopularKeywords is not
27             available for the following sites: FR, HK, MY, PH, PL, SG, SE.
28              
29              
30              
31             =head1 SYNOPSIS
32              
33             =cut
34              
35              
36             =head1 INHERITANCE
37              
38             eBay::API::XML::Call::GetPopularKeywords::GetPopularKeywordsRequestType inherits from the L class
39              
40             =cut
41              
42 1     1   33 use eBay::API::XML::RequestDataType;
  0            
  0            
43             our @ISA = ("eBay::API::XML::RequestDataType");
44              
45             use eBay::API::XML::DataType::PaginationType;
46              
47              
48             my @gaProperties = ( [ 'CategoryID', 'xs:string', '1', '', '' ]
49             , [ 'IncludeChildCategories', 'xs:boolean', '', '', '' ]
50             , [ 'MaxKeywordsRetrieved', 'xs:int', '', '', '' ]
51             , [ 'Pagination', 'ns:PaginationType', ''
52             ,'eBay::API::XML::DataType::PaginationType', '1' ]
53             );
54             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
55              
56             my @gaAttributes = (
57             );
58             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
59              
60             =head1 Subroutines:
61              
62             =cut
63              
64             sub new {
65             my $classname = shift;
66             my %args = @_;
67             my $self = $classname->SUPER::new(%args);
68             return $self;
69             }
70              
71             sub isScalar {
72             return 0;
73             }
74              
75              
76              
77             =head2 setCategoryID()
78              
79             A category ID for which you want keywords returned.
80             When IncludeChildCategories is true, one and only one
81             CategoryID is allowed. Otherwise, up
82             to 100 CategoryIds are allowed.
83             To retrieve the keywords for root category, set one of
84             the CategoryIDs to -1 or submit no CategoryIDs at all.
85              
86             MaxLength: 10
87              
88             RequiredInput: No
89             # Argument: reference to an array
90             of 'xs:string'
91              
92             =cut
93              
94             sub setCategoryID {
95             my $self = shift;
96             $self->{'CategoryID'} =
97             $self->convertArray_To_RefToArrayIfNeeded(@_);
98             }
99              
100             =head2 getCategoryID()
101              
102             # Returns: reference to an array
103             of 'xs:string'
104              
105             =cut
106              
107             sub getCategoryID {
108             my $self = shift;
109             return $self->_getDataTypeArray('CategoryID');
110             }
111              
112              
113             =head2 setIncludeChildCategories()
114              
115             If true, only one CategoryID can be specified, and keywords
116             are returned for that category and its subcategories.
117             If false, keywords are returned only for the categories
118             identified by CategoryID. Default is false.
119              
120             RequiredInput: No
121             # Argument: 'xs:boolean'
122              
123             =cut
124              
125             sub setIncludeChildCategories {
126             my $self = shift;
127             $self->{'IncludeChildCategories'} = shift
128             }
129              
130             =head2 isIncludeChildCategories()
131              
132             # Returns: 'xs:boolean'
133              
134             =cut
135              
136             sub isIncludeChildCategories {
137             my $self = shift;
138             return $self->{'IncludeChildCategories'};
139             }
140              
141              
142             =head2 setMaxKeywordsRetrieved()
143              
144             The maximum number of keywords to be retrieved per category
145             for this call.
146              
147             Max: 1000
148             Default: 20
149             Min: 1
150              
151             RequiredInput: No
152             # Argument: 'xs:int'
153              
154             =cut
155              
156             sub setMaxKeywordsRetrieved {
157             my $self = shift;
158             $self->{'MaxKeywordsRetrieved'} = shift
159             }
160              
161             =head2 getMaxKeywordsRetrieved()
162              
163             # Returns: 'xs:int'
164              
165             =cut
166              
167             sub getMaxKeywordsRetrieved {
168             my $self = shift;
169             return $self->{'MaxKeywordsRetrieved'};
170             }
171              
172              
173             =head2 setPagination()
174              
175             Details about how many categories to return per
176             page and which page to view.
177              
178             RequiredInput: No
179             # Argument: 'ns:PaginationType'
180              
181             =cut
182              
183             sub setPagination {
184             my $self = shift;
185             $self->{'Pagination'} = shift
186             }
187              
188             =head2 getPagination()
189              
190             # Returns: 'ns:PaginationType'
191              
192             =cut
193              
194             sub getPagination {
195             my $self = shift;
196             return $self->_getDataTypeInstance( 'Pagination'
197             ,'eBay::API::XML::DataType::PaginationType');
198             }
199              
200              
201              
202              
203              
204             ## Attribute and Property lists
205             sub getPropertiesList {
206             my $self = shift;
207             return \@gaProperties;
208             }
209              
210             sub getAttributesList {
211             my $self = shift;
212             return \@gaAttributes;
213             }
214              
215              
216              
217             1;