File Coverage

lib/eBay/API/XML/DataType/BuyingGuideType.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::BuyingGuideType;
4              
5 1     1   1093 use strict;
  1         2  
  1         25  
6 1     1   5 use warnings;
  1         1  
  1         29  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. BuyingGuideType.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::BuyingGuideType
21              
22             =head1 DESCRIPTION
23              
24             Information that identifies a buying guide. A buying guide provides content about particular
25             product areas, categories, or subjects to help buyers decide which type of item
26             to purchase based on their particular interests.
27             Buying guides are useful to buyers who do not have a specific product in mind.
28             For example, a digital camera buying guide could help a buyer determine what kind of
29             digital camera is right for them.
30              
31              
32              
33             =head1 SYNOPSIS
34              
35             =cut
36              
37              
38             =head1 INHERITANCE
39              
40             eBay::API::XML::DataType::BuyingGuideType inherits from the L class
41              
42             =cut
43              
44 1     1   32 use eBay::API::XML::BaseDataType;
  0            
  0            
45             our @ISA = ("eBay::API::XML::BaseDataType");
46              
47             use eBay::API::XML::DataType::UserIDType;
48              
49              
50             my @gaProperties = ( [ 'CategoryID', 'xs:string', '', '', '' ]
51             , [ 'CreationTime', 'xs:dateTime', '', '', '' ]
52             , [ 'Name', 'xs:string', '', '', '' ]
53             , [ 'ProductFinderID', 'xs:int', '', '', '' ]
54             , [ 'Text', 'xs:string', '', '', '' ]
55             , [ 'Title', 'xs:string', '', '', '' ]
56             , [ 'URL', 'xs:anyURI', '', '', '' ]
57             , [ 'UserID', 'ns:UserIDType', ''
58             ,'eBay::API::XML::DataType::UserIDType', '1' ]
59             );
60             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
61              
62             my @gaAttributes = (
63             );
64             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
65              
66             =head1 Subroutines:
67              
68             =cut
69              
70             sub new {
71             my $classname = shift;
72             my %args = @_;
73             my $self = $classname->SUPER::new(%args);
74             return $self;
75             }
76              
77             sub isScalar {
78             return 0;
79             }
80              
81              
82              
83             =head2 setCategoryID()
84              
85             Identifies the category (if any) that is associated
86             with the buying guide. For GetSearchResults, this can be a category that is higher or lower in the hierarchy
87             than the category specified in the request. For a matching categories search,
88             you can use this information to determine the order that the buying guides are
89             returned in when multiple guides are found.
90             Optionally, you can use this information to determine where to present
91             the buying guide link in your application.
92             Not returned for product finder searches.
93              
94             MaxLength: 10
95              
96             # Argument: 'xs:string'
97              
98             =cut
99              
100             sub setCategoryID {
101             my $self = shift;
102             $self->{'CategoryID'} = shift
103             }
104              
105             =head2 getCategoryID()
106              
107             Calls: GetCategoryListings
108             Returned: Conditionally
109              
110             Calls: GetSearchResults
111             Returned: Conditionally
112             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
113             GranularityLevel: Coarse
114              
115              
116             Calls: GetProducts
117             Returned: Conditionally
118              
119             # Returns: 'xs:string'
120              
121             =cut
122              
123             sub getCategoryID {
124             my $self = shift;
125             return $self->{'CategoryID'};
126             }
127              
128              
129             =head2 setCreationTime()
130              
131             The time and date when the guide was posted.
132              
133             # Argument: 'xs:dateTime'
134              
135             =cut
136              
137             sub setCreationTime {
138             my $self = shift;
139             $self->{'CreationTime'} = shift
140             }
141              
142             =head2 getCreationTime()
143              
144             Calls: GetProducts
145             Returned: Conditionally
146              
147             # Returns: 'xs:dateTime'
148              
149             =cut
150              
151             sub getCreationTime {
152             my $self = shift;
153             return $self->{'CreationTime'};
154             }
155              
156              
157             =head2 setName()
158              
159             Display name of the buying guide.
160            
161             GetProducts only returns 20 characters, followed by "..." if the name is
162             longer than 20 characters. For the full title, see BuyingGuide.Title
163             instead.
164              
165             # Argument: 'xs:string'
166              
167             =cut
168              
169             sub setName {
170             my $self = shift;
171             $self->{'Name'} = shift
172             }
173              
174             =head2 getName()
175              
176             Calls: GetCategoryListings
177             Returned: Conditionally
178              
179             Calls: GetSearchResults
180             Returned: Conditionally
181             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
182             GranularityLevel: Coarse
183              
184              
185             Calls: GetProducts
186             Returned: Conditionally
187             MaxLength: 23
188              
189             # Returns: 'xs:string'
190              
191             =cut
192              
193             sub getName {
194             my $self = shift;
195             return $self->{'Name'};
196             }
197              
198              
199             =head2 setProductFinderID()
200              
201             Identifies the product finder (if any) that is associated with the buying guide.
202             Only returned for product finder searches.
203              
204             # Argument: 'xs:int'
205              
206             =cut
207              
208             sub setProductFinderID {
209             my $self = shift;
210             $self->{'ProductFinderID'} = shift
211             }
212              
213             =head2 getProductFinderID()
214              
215             Calls: GetSearchResults
216             Returned: Conditionally
217             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
218              
219             # Returns: 'xs:int'
220              
221             =cut
222              
223             sub getProductFinderID {
224             my $self = shift;
225             return $self->{'ProductFinderID'};
226             }
227              
228              
229             =head2 setText()
230              
231             The text of the guide. If the guide is longer than
232             2000 characters, the text is cut off and it ends with "...".
233             See BuyingGuide.URL for a link to the full text of the review.
234              
235             # Argument: 'xs:string'
236              
237             =cut
238              
239             sub setText {
240             my $self = shift;
241             $self->{'Text'} = shift
242             }
243              
244             =head2 getText()
245              
246             Calls: GetProducts
247             Returned: Conditionally
248              
249             # Returns: 'xs:string'
250              
251             =cut
252              
253             sub getText {
254             my $self = shift;
255             return $self->{'Text'};
256             }
257              
258              
259             =head2 setTitle()
260              
261             The title of the buying guide.
262              
263             # Argument: 'xs:string'
264              
265             =cut
266              
267             sub setTitle {
268             my $self = shift;
269             $self->{'Title'} = shift
270             }
271              
272             =head2 getTitle()
273              
274             Calls: GetProducts
275             Returned: Conditionally
276             MaxLength: 55
277              
278             # Returns: 'xs:string'
279              
280             =cut
281              
282             sub getTitle {
283             my $self = shift;
284             return $self->{'Title'};
285             }
286              
287              
288             =head2 setURL()
289              
290             URL for the buying guide. Your application can
291             present this as a link. Use the value of Name as the link's display name.
292              
293             # Argument: 'xs:anyURI'
294              
295             =cut
296              
297             sub setURL {
298             my $self = shift;
299             $self->{'URL'} = shift
300             }
301              
302             =head2 getURL()
303              
304             Calls: GetCategoryListings
305             Returned: Conditionally
306              
307             Calls: GetSearchResults
308             Returned: Conditionally
309             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
310             GranularityLevel: Coarse
311              
312              
313             Calls: GetProducts
314             Returned: Conditionally
315              
316             # Returns: 'xs:anyURI'
317              
318             =cut
319              
320             sub getURL {
321             my $self = shift;
322             return $self->{'URL'};
323             }
324              
325              
326             =head2 setUserID()
327              
328             The author's eBay user ID.
329              
330             # Argument: 'ns:UserIDType'
331              
332             =cut
333              
334             sub setUserID {
335             my $self = shift;
336             $self->{'UserID'} = shift
337             }
338              
339             =head2 getUserID()
340              
341             Calls: GetProducts
342             Returned: Conditionally
343              
344             # Returns: 'ns:UserIDType'
345              
346             =cut
347              
348             sub getUserID {
349             my $self = shift;
350             return $self->_getDataTypeInstance( 'UserID'
351             ,'eBay::API::XML::DataType::UserIDType');
352             }
353              
354              
355              
356              
357              
358             ## Attribute and Property lists
359             sub getPropertiesList {
360             my $self = shift;
361             return \@gaProperties;
362             }
363              
364             sub getAttributesList {
365             my $self = shift;
366             return \@gaAttributes;
367             }
368              
369              
370              
371             1;