File Coverage

lib/eBay/API/XML/Call/GetItem.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::GetItem;
4              
5 1     1   2834 use strict;
  1         3  
  1         43  
6 1     1   5 use warnings;
  1         2  
  1         33  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetItem.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::GetItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetItem inherits from the L class
34              
35             =cut
36              
37 1     1   45 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetItem::GetItemRequestType;
41             use eBay::API::XML::Call::GetItem::GetItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetItem::GetItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetItem::GetItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setIncludeCrossPromotion()
63              
64             Specifies whether or not to include cross-promotion information for
65             the item in the call response.
66            

67             With a request version of 485 or higher, the default is false (do not
68             include cross-promotion details). Set to true to retrieve cross-promotion
69             information for the item. Cross-promotion information is returned in
70             Item.CrossPromotion.PromotedItem.PromotionDetails.
71             A promoted item will now contain multiple PromotionDetails containers.
72            

73             With a request version lower than 485, the default is true (include
74             cross-promotions). Set the value to false if you do not want to retrieve
75             cross-promotion information. Cross-promotion information, PromotedPrice
76             and PromotedPriceType, are returned in Item.CrossPromotion.PromotedItem.
77             If a promoted item has multiple PromotedPriceType and PromotedPrice value
78             pairs, only the last pair is returned.
79              
80             RequiredInput: No
81             # Argument: 'xs:boolean'
82              
83             =cut
84            
85             sub setIncludeCrossPromotion {
86             my $self = shift;
87             my $sIncludeCrossPromotion = shift;
88             $self->getRequestDataType()->setIncludeCrossPromotion($sIncludeCrossPromotion);
89             }
90              
91             =head2 setIncludeItemSpecifics()
92              
93             If true, the response returns the ItemSpecifics node
94             (if the listing has custom Item Specifics).
95            
96             Item Specifics are well-known aspects of items in a given
97             category. For example, items in a washer and dryer category
98             might have an aspect like Type=Top-Loading; whereas
99             items in a jewelry category might have an aspect like
100             Gemstone=Amber.
101            
102             (This does not cause the response to include ID-based
103             attributes. To also retrieve ID-based attributes,
104             pass DetailLevel in the request with the value
105             ItemReturnAttributes or ReturnAll.)
106              
107             RequiredInput: No
108             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ItemSpecifics, Title: Working with Custom Item Specifics
109             # Argument: 'xs:boolean'
110              
111             =cut
112            
113             sub setIncludeItemSpecifics {
114             my $self = shift;
115             my $sIncludeItemSpecifics = shift;
116             $self->getRequestDataType()->setIncludeItemSpecifics($sIncludeItemSpecifics);
117             }
118              
119             =head2 setIncludeTaxTable()
120              
121             If true, an associated tax table is returned in the response.
122             If no tax table is associated with the item, then no
123             tax table is returned, even if IncludeTaxTable is set to true.
124              
125             RequiredInput: No
126             # Argument: 'xs:boolean'
127              
128             =cut
129            
130             sub setIncludeTaxTable {
131             my $self = shift;
132             my $sIncludeTaxTable = shift;
133             $self->getRequestDataType()->setIncludeTaxTable($sIncludeTaxTable);
134             }
135              
136             =head2 setIncludeWatchCount()
137              
138             Indicates if the caller wants to include watch count for that item in the
139             response. You must be the seller of the item to retrieve the watch count.
140              
141             RequiredInput: No
142             # Argument: 'xs:boolean'
143              
144             =cut
145            
146             sub setIncludeWatchCount {
147             my $self = shift;
148             my $sIncludeWatchCount = shift;
149             $self->getRequestDataType()->setIncludeWatchCount($sIncludeWatchCount);
150             }
151              
152             =head2 setItemID()
153              
154             Specifies the item ID that uniquely identifies the item listing for which
155             to retrieve the data. ItemID is a required input.
156              
157             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
158              
159             RequiredInput: Yes
160             # Argument: 'ns:ItemIDType'
161              
162             =cut
163            
164             sub setItemID {
165             my $self = shift;
166             my $pItemID = shift;
167             $self->getRequestDataType()->setItemID($pItemID);
168             }
169              
170              
171              
172             #
173             # output properties
174             #
175              
176             =head2 getItem()
177              
178             ItemType object that contains the data for the specified item.
179              
180             Returned: Always
181             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
182             # Returns: 'ns:ItemType'
183              
184             =cut
185            
186             sub getItem {
187             my $self = shift;
188             return $self->getResponseDataType()->getItem();
189             }
190              
191              
192              
193              
194              
195             1;