File Coverage

lib/eBay/API/XML/DataType/GetRecommendationsResponseContainerType.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::GetRecommendationsResponseContainerType;
4              
5 1     1   1328 use strict;
  1         2  
  1         30  
6 1     1   7 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetRecommendationsResponseContainerType.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::GetRecommendationsResponseContainerType
21              
22             =head1 DESCRIPTION
23              
24             Returns recommended changes or opportunities for improvement
25             related to listing data that was passed in a GetItemRecommendations request.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::GetRecommendationsResponseContainerType inherits from the L class
37              
38             =cut
39              
40 1     1   43 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::AttributeRecommendationsType;
44             use eBay::API::XML::DataType::ItemSpecificsRecommendationsType;
45             use eBay::API::XML::DataType::ListingAnalyzerRecommendationsType;
46             use eBay::API::XML::DataType::PricingRecommendationsType;
47             use eBay::API::XML::DataType::ProductRecommendationsType;
48             use eBay::API::XML::DataType::SIFFTASRecommendationsType;
49              
50              
51             my @gaProperties = ( [ 'AttributeRecommendations', 'ns:AttributeRecommendationsType', ''
52             ,'eBay::API::XML::DataType::AttributeRecommendationsType', '1' ]
53             , [ 'CorrelationID', 'xs:string', '', '', '' ]
54             , [ 'ItemSpecificsRecommendations', 'ns:ItemSpecificsRecommendationsType', ''
55             ,'eBay::API::XML::DataType::ItemSpecificsRecommendationsType', '1' ]
56             , [ 'ListingAnalyzerRecommendations', 'ns:ListingAnalyzerRecommendationsType', ''
57             ,'eBay::API::XML::DataType::ListingAnalyzerRecommendationsType', '1' ]
58             , [ 'PricingRecommendations', 'ns:PricingRecommendationsType', ''
59             ,'eBay::API::XML::DataType::PricingRecommendationsType', '1' ]
60             , [ 'ProductRecommendations', 'ns:ProductRecommendationsType', ''
61             ,'eBay::API::XML::DataType::ProductRecommendationsType', '1' ]
62             , [ 'SIFFTASRecommendations', 'ns:SIFFTASRecommendationsType', ''
63             ,'eBay::API::XML::DataType::SIFFTASRecommendationsType', '1' ]
64             );
65             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
66              
67             my @gaAttributes = (
68             );
69             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
70              
71             =head1 Subroutines:
72              
73             =cut
74              
75             sub new {
76             my $classname = shift;
77             my %args = @_;
78             my $self = $classname->SUPER::new(%args);
79             return $self;
80             }
81              
82             sub isScalar {
83             return 0;
84             }
85              
86              
87              
88             =head2 setAttributeRecommendations()
89              
90             Contains attribute suggestions returned from the Suggested Attributes engine,
91             if this engine was specified in the request.
92             The results include suggested attributes and values based on the primary category
93             and a string you specify in the Query field. Suggestions may only be returned when the
94             Suggested Attributes engine is specified alone. If you request recommendations by using
95             multiple engines, suggested attribute data might not be returned. If attributes are returned
96             with multiple values, the values are returned in order of rank (i.e., the value that best meets
97             eBay's recommendation criteria is returned first).
98              
99             # Argument: 'ns:AttributeRecommendationsType'
100              
101             =cut
102              
103             sub setAttributeRecommendations {
104             my $self = shift;
105             $self->{'AttributeRecommendations'} = shift
106             }
107              
108             =head2 getAttributeRecommendations()
109              
110             Calls: GetItemRecommendations
111             Returned: Conditionally
112              
113             # Returns: 'ns:AttributeRecommendationsType'
114              
115             =cut
116              
117             sub getAttributeRecommendations {
118             my $self = shift;
119             return $self->_getDataTypeInstance( 'AttributeRecommendations'
120             ,'eBay::API::XML::DataType::AttributeRecommendationsType');
121             }
122              
123              
124             =head2 setCorrelationID()
125              
126             Unique key to distinguish between recommendations for each item.
127             Matches a correlation ID you defined in the request, if any.
128              
129             # Argument: 'xs:string'
130              
131             =cut
132              
133             sub setCorrelationID {
134             my $self = shift;
135             $self->{'CorrelationID'} = shift
136             }
137              
138             =head2 getCorrelationID()
139              
140             Calls: GetItemRecommendations
141             Returned: Conditionally
142              
143             # Returns: 'xs:string'
144              
145             =cut
146              
147             sub getCorrelationID {
148             my $self = shift;
149             return $self->{'CorrelationID'};
150             }
151              
152              
153             =head2 setItemSpecificsRecommendations()
154              
155             Contains custom Item Specifics suggestions returned from the custom
156             Item Specifics recommendation engine, An Item Specific consists of
157             a name/value pair, and it may be returned as complete (with name and
158             one or more values) or partial (name only).
159              
160             # Argument: 'ns:ItemSpecificsRecommendationsType'
161              
162             =cut
163              
164             sub setItemSpecificsRecommendations {
165             my $self = shift;
166             $self->{'ItemSpecificsRecommendations'} = shift
167             }
168              
169             =head2 getItemSpecificsRecommendations()
170              
171             Calls: GetItemRecommendations
172             Returned: Conditionally
173             TagStatus: ComingSoon
174              
175             # Returns: 'ns:ItemSpecificsRecommendationsType'
176              
177             =cut
178              
179             sub getItemSpecificsRecommendations {
180             my $self = shift;
181             return $self->_getDataTypeInstance( 'ItemSpecificsRecommendations'
182             ,'eBay::API::XML::DataType::ItemSpecificsRecommendationsType');
183             }
184              
185              
186             =head2 setListingAnalyzerRecommendations()
187              
188             Contains tips returned from the Listing Analyzer recommendation engine,
189             if this engine was specified in the request (or if no engine was specified).
190              
191             # Argument: 'ns:ListingAnalyzerRecommendationsType'
192              
193             =cut
194              
195             sub setListingAnalyzerRecommendations {
196             my $self = shift;
197             $self->{'ListingAnalyzerRecommendations'} = shift
198             }
199              
200             =head2 getListingAnalyzerRecommendations()
201              
202             Calls: GetItemRecommendations
203             Returned: Conditionally
204              
205             # Returns: 'ns:ListingAnalyzerRecommendationsType'
206              
207             =cut
208              
209             sub getListingAnalyzerRecommendations {
210             my $self = shift;
211             return $self->_getDataTypeInstance( 'ListingAnalyzerRecommendations'
212             ,'eBay::API::XML::DataType::ListingAnalyzerRecommendationsType');
213             }
214              
215              
216             =head2 setPricingRecommendations()
217              
218             Contains pricing data returned from the Product Pricing engine,
219             if this engine was specified in the request (or if no engine was specified).
220              
221             # Argument: 'ns:PricingRecommendationsType'
222              
223             =cut
224              
225             sub setPricingRecommendations {
226             my $self = shift;
227             $self->{'PricingRecommendations'} = shift
228             }
229              
230             =head2 getPricingRecommendations()
231              
232             Calls: GetItemRecommendations
233             Returned: Conditionally
234              
235             # Returns: 'ns:PricingRecommendationsType'
236              
237             =cut
238              
239             sub getPricingRecommendations {
240             my $self = shift;
241             return $self->_getDataTypeInstance( 'PricingRecommendations'
242             ,'eBay::API::XML::DataType::PricingRecommendationsType');
243             }
244              
245              
246             =head2 setProductRecommendations()
247              
248             Contains zero or more product titles and IDs returned from the Suggested Attributes engine,
249             if this engine was specified in the request (or if no engine was specified).
250             If applicable, use one of the suggested product IDs to list the item with Pre-filled Item Information.
251              
252             # Argument: 'ns:ProductRecommendationsType'
253              
254             =cut
255              
256             sub setProductRecommendations {
257             my $self = shift;
258             $self->{'ProductRecommendations'} = shift
259             }
260              
261             =head2 getProductRecommendations()
262              
263             Calls: GetItemRecommendations
264             Returned: Conditionally
265              
266             # Returns: 'ns:ProductRecommendationsType'
267              
268             =cut
269              
270             sub getProductRecommendations {
271             my $self = shift;
272             return $self->_getDataTypeInstance( 'ProductRecommendations'
273             ,'eBay::API::XML::DataType::ProductRecommendationsType');
274             }
275              
276              
277             =head2 setSIFFTASRecommendations()
278              
279             Reserved for future use.
280              
281             # Argument: 'ns:SIFFTASRecommendationsType'
282              
283             =cut
284              
285             sub setSIFFTASRecommendations {
286             my $self = shift;
287             $self->{'SIFFTASRecommendations'} = shift
288             }
289              
290             =head2 getSIFFTASRecommendations()
291              
292             # Returns: 'ns:SIFFTASRecommendationsType'
293              
294             =cut
295              
296             sub getSIFFTASRecommendations {
297             my $self = shift;
298             return $self->_getDataTypeInstance( 'SIFFTASRecommendations'
299             ,'eBay::API::XML::DataType::SIFFTASRecommendationsType');
300             }
301              
302              
303              
304              
305              
306             ## Attribute and Property lists
307             sub getPropertiesList {
308             my $self = shift;
309             return \@gaProperties;
310             }
311              
312             sub getAttributesList {
313             my $self = shift;
314             return \@gaAttributes;
315             }
316              
317              
318              
319             1;