File Coverage

lib/eBay/API/XML/Call/ReviseItem.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::ReviseItem;
4              
5 1     1   2660 use strict;
  1         5  
  1         33  
6 1     1   5 use warnings;
  1         2  
  1         38  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ReviseItem.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::ReviseItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::ReviseItem inherits from the L class
34              
35             =cut
36              
37 1     1   37 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::ReviseItem::ReviseItemRequestType;
41             use eBay::API::XML::Call::ReviseItem::ReviseItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'ReviseItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::ReviseItem::ReviseItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::ReviseItem::ReviseItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setDeletedField()
63              
64             Specifies the name of a field to delete from a listing.
65             You cannot delete required fields from a listing.

66             Some fields are optional when you first list an item (e.g., ListingEnhancement),
67             but once they are set they cannot be deleted when you revise an item.
68             Some optional fields cannot be deleted if the item has bids and/or ends within 12 hours.
69             Some optional fields cannot be deleted if other fields depend on them.
70             For example, if GalleryType was already set for the item you are revising,
71             you cannot remove it. Therefore, you still need to include at least one picture URL, a gallery URL,
72             or a catalog stock photo in your revised listing.
73             See the eBay Web Services guide for rules on removing values when revising items.
74             Also see the relevant field descriptions for details on when to use DeletedField
75             (and potential consequences).

76             The request can contain zero, one, or many instances of DeletedField (one for each field to be deleted).
77             DeletedField accepts the following path names, which delete the corresponding nodes:

78             Item.ApplicationData
79             Item.AttributeSetArray
80             Item.BuyItNowPrice
81             Item.ItemSpecifics
82             Item.ListingCheckoutRedirectPreference.ProStoresStoreName
83             Item.ListingCheckoutRedirectPreference.SellerThirdPartyUsername
84             Item.ListingDesigner.LayoutID
85             Item.ListingDesigner.ThemeID
86             Item.ListingDetails.MinimumBestOfferMessage
87             Item.ListingDetails.MinimumBestOfferPrice
88             Item.PayPalEmailAddress
89             Item.PictureDetails.GalleryURL
90             Item.PictureDetails.PictureURL
91             Item.PostalCode
92             Item.ProductListingDetails
93             Item.SellerContactDetails
94             Item.SellerContactDetails.CompanyName
95             Item.SellerContactDetails.County
96             Item.SellerContactDetails.InternationalStreet
97             Item.SellerContactDetails.Phone2AreaOrCityCode
98             Item.SellerContactDetails.Phone2CountryCode
99             Item.SellerContactDetails.Phone2CountryPrefix
100             Item.SellerContactDetails.Phone2LocalNumber
101             Item.SellerContactDetails.PhoneAreaOrCityCode
102             Item.SellerContactDetails.PhoneCountryCode
103             Item.SellerContactDetails.PhoneCountryPrefix
104             Item.SellerContactDetails.PhoneLocalNumber
105             Item.SellerContactDetails.Street
106             Item.SellerContactDetails.Street2
107             Item.ShippingDetails.PaymentInstructions
108             Item.SKU
109             These values are case-sensitive. Use values that match the case of the
110             schema element names (Item.PictureDetails.GalleryURL) or make the initial
111             letter of each field name lowercase (item.pictureDetails.galleryURL).
112             However, do not change the case of letters in the middle of a field name.
113             For example, item.picturedetails.galleryUrl is not allowed.
114              
115             RequiredInput: Conditionally
116             # Argument: reference to an array
117             of 'xs:string'
118              
119             =cut
120            
121             sub setDeletedField {
122             my $self = shift;
123             my $sDeletedField = shift;
124             $self->getRequestDataType()->setDeletedField($sDeletedField);
125             }
126              
127             =head2 setItem()
128              
129             Required. Child elements hold the values for properties that are changing.
130             The Item.ItemID property must always be set to the ID of the item listing being changed. Set values in the Item object only for those properties that are changing. Use DeletedField to remove a property. Also applicable to Half.com.
131              
132             RequiredInput: Yes
133             # Argument: 'ns:ItemType'
134              
135             =cut
136            
137             sub setItem {
138             my $self = shift;
139             my $pItem = shift;
140             $self->getRequestDataType()->setItem($pItem);
141             }
142              
143              
144              
145             #
146             # output properties
147             #
148              
149             =head2 getCategory2ID()
150              
151             ID of the secondary category in which the item was listed.
152             Only returned if you set Item.CategoryMappingAllowed to true in the request
153             and the ID passed in Item.SecondaryCategory was mapped to a new ID by eBay.
154             If the secondary category has not changed or it has expired with no replacement,
155             Category2ID does not return a value.
156             Not applicable to Half.com.
157              
158             Returned: Conditionally
159             # Returns: 'xs:string'
160              
161             =cut
162            
163             sub getCategory2ID {
164             my $self = shift;
165             return $self->getResponseDataType()->getCategory2ID();
166             }
167              
168             =head2 getCategoryID()
169              
170             ID of the primary category in which the item was listed.
171             Only returned if you set Item.CategoryMappingAllowed to true in the request
172             and the ID passed in Item.PrimaryCategory was mapped to a new ID by eBay.
173             If the primary category has not changed or it has expired with no replacement,
174             CategoryID does not return a value.
175             Not applicable to Half.com.
176              
177             Returned: Conditionally
178             # Returns: 'xs:string'
179              
180             =cut
181            
182             sub getCategoryID {
183             my $self = shift;
184             return $self->getResponseDataType()->getCategoryID();
185             }
186              
187             =head2 getEndTime()
188              
189             Date and time when the new listing ends. This is the starting time
190             plus the listing duration.
191             Also returned for Half.com, but for Half.com the actual end time is GTC
192             (not the end time returned in the response).
193              
194             Returned: Always
195             # Returns: 'xs:dateTime'
196              
197             =cut
198            
199             sub getEndTime {
200             my $self = shift;
201             return $self->getResponseDataType()->getEndTime();
202             }
203              
204             =head2 getFees()
205              
206             Child elements contain the estimated listing fees for the revised item
207             listing. The fees do not include the Final Value Fee (FVF), which cannot
208             be determined until an item is sold. Revising an item does not itself
209             incur a fee. However, certain item properties are fee-based and result
210             in the return of fees in the call's response.
211             Not applicable to Half.com.
212              
213             Returned: Always
214             # Returns: 'ns:FeesType'
215              
216             =cut
217            
218             sub getFees {
219             my $self = shift;
220             return $self->getResponseDataType()->getFees();
221             }
222              
223             =head2 getItemID()
224              
225             Item ID that uniquely identifies the item listing that was revised.
226             Provided for confirmation purposes. The value returned should be the
227             same as the item ID specified in the ItemID property of the Item object
228             specified as input for the call.
229             Also applicable to Half.com.
230              
231             Returned: Always
232             # Returns: 'ns:ItemIDType'
233              
234             =cut
235            
236             sub getItemID {
237             my $self = shift;
238             return $self->getResponseDataType()->getItemID();
239             }
240              
241             =head2 getStartTime()
242              
243             Starting date and time for the new listing.
244             Also returned for Half.com (for Half.com, the start time is
245             always the time the item was listed).
246              
247             Returned: Always
248             # Returns: 'xs:dateTime'
249              
250             =cut
251            
252             sub getStartTime {
253             my $self = shift;
254             return $self->getResponseDataType()->getStartTime();
255             }
256              
257              
258              
259              
260              
261             1;