File Coverage

lib/eBay/API/XML/Call/GetSuggestedCategories/GetSuggestedCategoriesRequestType.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::GetSuggestedCategories::GetSuggestedCategoriesRequestType;
4              
5 1     1   1344 use strict;
  1         2  
  1         26  
6 1     1   6 use warnings;
  1         2  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetSuggestedCategoriesRequestType.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::GetSuggestedCategories::GetSuggestedCategoriesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Requests a list of up to 10 categories with
25             the highest percentage of listings whose titles or descriptions
26             contain the keywords you specify.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::Call::GetSuggestedCategories::GetSuggestedCategoriesRequestType inherits from the L class
38              
39             =cut
40              
41 1     1   32 use eBay::API::XML::RequestDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::RequestDataType");
43              
44              
45              
46             my @gaProperties = ( [ 'Query', 'xs:string', '', '', '' ]
47             );
48             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
49              
50             my @gaAttributes = (
51             );
52             push @gaAttributes, @{eBay::API::XML::RequestDataType::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 setQuery()
72              
73             Specifies the search string, consisting of one or
74             more words to search for in the listing title.
75             The words "and" and "or" are treated like any other
76             word.
77              
78             MaxLength: 350 (characters)
79              
80             RequiredInput: Yes
81             # Argument: 'xs:string'
82              
83             =cut
84              
85             sub setQuery {
86             my $self = shift;
87             $self->{'Query'} = shift
88             }
89              
90             =head2 getQuery()
91              
92             # Returns: 'xs:string'
93              
94             =cut
95              
96             sub getQuery {
97             my $self = shift;
98             return $self->{'Query'};
99             }
100              
101              
102              
103              
104              
105             ## Attribute and Property lists
106             sub getPropertiesList {
107             my $self = shift;
108             return \@gaProperties;
109             }
110              
111             sub getAttributesList {
112             my $self = shift;
113             return \@gaAttributes;
114             }
115              
116              
117              
118             1;