File Coverage

lib/eBay/API/XML/Call/VerifyAddItem.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::VerifyAddItem;
4              
5 1     1   1726 use strict;
  1         3  
  1         27  
6 1     1   4 use warnings;
  1         2  
  1         785  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. VerifyAddItem.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::VerifyAddItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::VerifyAddItem inherits from the L class
34              
35             =cut
36              
37 1     1   41 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::VerifyAddItem::VerifyAddItemRequestType;
41             use eBay::API::XML::Call::VerifyAddItem::VerifyAddItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'VerifyAddItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::VerifyAddItem::VerifyAddItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::VerifyAddItem::VerifyAddItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setExternalProductID()
63              
64             Deprecated. This field will be removed from the schema
65             in a future release. Recommended usage as of release 439 varies for
66             eBay.com listings and Half.com listings.
67            

68             For eBay.com listings:
69             As of release 439, this field can still be passed in, but we recommend
70             that you update your applications to use the ExternalProductID field
71             defined on the item instead (i.e., Item.ExternalProductID). If you
72             specify both Item.ExternalProductID and this field in the same request,
73             eBay uses the value in Item.ExternalProductID and ignores the value in
74             this field. See Item.ExternalProductID for information on using an
75             external ID for eBay.com listings.
76            

77             For Half.com listings:
78             As of release 439, this field is required for Half.com listings.
79             Causes Half.com to list the item with Pre-filled Item Information based on
80             an ISBN value or other supported external ID, plus other meta-data that
81             you specify. See the eBay Web Services guide for information about
82             listing to Half.com.
83              
84             RequiredInput: Conditionally
85             # Argument: 'ns:ExternalProductIDType'
86              
87             =cut
88            
89             sub setExternalProductID {
90             my $self = shift;
91             my $pExternalProductID = shift;
92             $self->getRequestDataType()->setExternalProductID($pExternalProductID);
93             }
94              
95             =head2 setIncludeExpressRequirements()
96              
97             Indicates if the response should include detailed data relating to
98             whether an item would qualify as an Express listing. For
99             information about the Express-related data that can be returned
100             when IncludeExpressRequirements is set to true,
101             see the response of VerifyAddItem and see the
102             eBay Web Services Guide.
103              
104             Default: false
105             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ExpressListingCriteria
106             Title: Listing Criteria for eBay Express
107              
108             RequiredInput: No
109             # Argument: 'xs:boolean'
110              
111             =cut
112            
113             sub setIncludeExpressRequirements {
114             my $self = shift;
115             my $sIncludeExpressRequirements = shift;
116             $self->getRequestDataType()->setIncludeExpressRequirements($sIncludeExpressRequirements);
117             }
118              
119             =head2 setItem()
120              
121             ItemType object, the properties of which define the new item listing.
122              
123             RequiredInput: Yes
124             # Argument: 'ns:ItemType'
125              
126             =cut
127            
128             sub setItem {
129             my $self = shift;
130             my $pItem = shift;
131             $self->getRequestDataType()->setItem($pItem);
132             }
133              
134              
135              
136             #
137             # output properties
138             #
139              
140             =head2 getCategory2ID()
141              
142             ID of the secondary category in which the item would be listed.
143             Only returned if you set Item.CategoryMappingAllowed to true in the request
144             and the ID you passed in SecondaryCategory was mapped to a new ID by eBay.
145             If the secondary category has not changed or it has expired with no replacement,
146             Category2ID does not return a value.
147              
148             Returned: Conditionally
149             # Returns: 'xs:string'
150              
151             =cut
152            
153             sub getCategory2ID {
154             my $self = shift;
155             return $self->getResponseDataType()->getCategory2ID();
156             }
157              
158             =head2 getCategoryID()
159              
160             ID of the primary category in which the item would be listed.
161             Only returned if you set Item.CategoryMappingAllowed to true in the request
162             and the ID you passed in PrimaryCategory was mapped to a new ID by eBay.
163             If the primary category has not changed or it has expired with no replacement,
164             CategoryID does not return a value.
165              
166             Returned: Conditionally
167             # Returns: 'xs:string'
168              
169             =cut
170            
171             sub getCategoryID {
172             my $self = shift;
173             return $self->getResponseDataType()->getCategoryID();
174             }
175              
176             =head2 getExpressItemRequirements()
177              
178             Contains details about why an item does or doesn't
179             qualify as an eBay Express listing. Only returned when
180             IncludeExpressRequirements is true the request.
181            
182             The item requirements are assessed in this order:
183             - SellerExpressEligible
184             - ExpressOptOut
185             - ExpressApproved
186             - All other settings
187              
188             Returned: Conditionally
189             # Returns: 'ns:ExpressItemRequirementsType'
190              
191             =cut
192            
193             sub getExpressItemRequirements {
194             my $self = shift;
195             return $self->getResponseDataType()->getExpressItemRequirements();
196             }
197              
198             =head2 isExpressListing()
199              
200             Indicates whether the item would be listed on eBay Express.
201             See ExpressItemRequirements for hints about why this
202             value is true or false for a given item.
203              
204             Returned: Conditionally
205             # Returns: 'xs:boolean'
206              
207             =cut
208            
209             sub isExpressListing {
210             my $self = shift;
211             return $self->getResponseDataType()->isExpressListing();
212             }
213              
214             =head2 getFees()
215              
216             Child elements contain the estimated listing fees for the new item listing.
217             The fees do not include the Final Value Fee (FVF), which cannot be determined
218             until an item is sold.
219              
220             Returned: Always
221             # Returns: 'ns:FeesType'
222              
223             =cut
224            
225             sub getFees {
226             my $self = shift;
227             return $self->getResponseDataType()->getFees();
228             }
229              
230             =head2 getItemID()
231              
232             Represents the item ID for the new listing. VerifyAddItem does not
233             actually list an item, so 0 is returned instead of a normal item ID.
234              
235             Returned: Always
236             # Returns: 'ns:ItemIDType'
237              
238             =cut
239            
240             sub getItemID {
241             my $self = shift;
242             return $self->getResponseDataType()->getItemID();
243             }
244              
245              
246              
247              
248              
249             1;