| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::RelistItem; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 3111 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 32 |  | 
| 6 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 29 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. RelistItem.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::RelistItem | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::RelistItem inherits from the L class | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =cut | 
| 36 |  |  |  |  |  |  |  | 
| 37 | 1 |  |  | 1 |  | 74 | use eBay::API::XML::BaseCall; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseCall"); | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | use eBay::API::XML::Call::RelistItem::RelistItemRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::RelistItem::RelistItemResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'RelistItem'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::RelistItem::RelistItemRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::RelistItem::RelistItemResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setDeletedField() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Specifies the name of the field to delete from a listing. | 
| 65 |  |  |  |  |  |  | See the eBay Web Services guide for rules on deleting values when relisting items. | 
| 66 |  |  |  |  |  |  | Also see the relevant field descriptions to determine when to use DeletedField (and potential consequences). | 
| 67 |  |  |  |  |  |  | The request can contain zero, one, or many instances of DeletedField (one for each field to be deleted). | 
| 68 |  |  |  |  |  |  | DeletedField accepts the following path names, which delete the corresponding nodes: 
 
 | 
| 69 |  |  |  |  |  |  | Item.ApplicationData 
 | 
| 70 |  |  |  |  |  |  | Item.AttributeSetArray 
 | 
| 71 |  |  |  |  |  |  | Item.BuyItNowPrice 
 | 
| 72 |  |  |  |  |  |  | Item.Charity 
 | 
| 73 |  |  |  |  |  |  | Item.ItemSpecifics 
 | 
| 74 |  |  |  |  |  |  | Item.ListingCheckoutRedirectPreference.ProStoresStoreName 
 | 
| 75 |  |  |  |  |  |  | Item.ListingCheckoutRedirectPreference.SellerThirdPartyUsername 
 | 
| 76 |  |  |  |  |  |  | Item.ListingDesigner.LayoutID 
 | 
| 77 |  |  |  |  |  |  | Item.ListingDesigner.ThemeID 
 | 
| 78 |  |  |  |  |  |  | Item.ListingDetails.LocalListingDistance 
 | 
| 79 |  |  |  |  |  |  | Item.ListingDetails.MinimumBestOfferMessage 
 | 
| 80 |  |  |  |  |  |  | Item.ListingDetails.MinimumBestOfferPrice 
 | 
| 81 |  |  |  |  |  |  | Item.ListingEnhancement[Value] 
 | 
| 82 |  |  |  |  |  |  | Item.PayPalEmailAddress 
 | 
| 83 |  |  |  |  |  |  | Item.PictureDetails.GalleryURL 
 | 
| 84 |  |  |  |  |  |  | Item.PictureDetails.PictureURL 
 | 
| 85 |  |  |  |  |  |  | Item.PostalCode 
 | 
| 86 |  |  |  |  |  |  | Item.ProductListingDetails 
 | 
| 87 |  |  |  |  |  |  | Item.SecondaryCategory 
 | 
| 88 |  |  |  |  |  |  | Item.SellerContactDetails 
 | 
| 89 |  |  |  |  |  |  | Item.SellerContactDetails.CompanyName 
 | 
| 90 |  |  |  |  |  |  | Item.SellerContactDetails.County 
 | 
| 91 |  |  |  |  |  |  | Item.SellerContactDetails.InternationalStreet 
 | 
| 92 |  |  |  |  |  |  | Item.SellerContactDetails.Phone2AreaOrCityCode 
 | 
| 93 |  |  |  |  |  |  | Item.SellerContactDetails.Phone2CountryCode 
 | 
| 94 |  |  |  |  |  |  | Item.SellerContactDetails.Phone2CountryPrefix 
 | 
| 95 |  |  |  |  |  |  | Item.SellerContactDetails.Phone2LocalNumber 
 | 
| 96 |  |  |  |  |  |  | Item.SellerContactDetails.PhoneAreaOrCityCode 
 | 
| 97 |  |  |  |  |  |  | Item.SellerContactDetails.PhoneCountryCode 
 | 
| 98 |  |  |  |  |  |  | Item.SellerContactDetails.PhoneCountryPrefix 
 | 
| 99 |  |  |  |  |  |  | Item.SellerContactDetails.PhoneLocalNumber 
 | 
| 100 |  |  |  |  |  |  | Item.SellerContactDetails.Street 
 | 
| 101 |  |  |  |  |  |  | Item.SellerContactDetails.Street2 
 | 
| 102 |  |  |  |  |  |  | Item.ShippingDetails.PaymentInstructions 
 | 
| 103 |  |  |  |  |  |  | Item.SKU 
 | 
| 104 |  |  |  |  |  |  | Item.SubTitle 
 | 
| 105 |  |  |  |  |  |  | These values are case-sensitive. Use values that match the case of the schema element names | 
| 106 |  |  |  |  |  |  | (Item.PictureDetails.GalleryURL) or make the initial letter of each field name lowercase (item.pictureDetails.galleryURL). | 
| 107 |  |  |  |  |  |  | However, do not change the case of letters in the middle of a field name. | 
| 108 |  |  |  |  |  |  | For example, item.picturedetails.galleryUrl is not allowed. 
 
 | 
| 109 |  |  |  |  |  |  | To delete a listing enhancement like Featured, specify the value you are deleting; | 
| 110 |  |  |  |  |  |  | for example, Item.ListingEnhancement[Featured]. | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 113 |  |  |  |  |  |  | #    Argument: reference to an array | 
| 114 |  |  |  |  |  |  | of 'xs:string' | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | =cut | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | sub setDeletedField { | 
| 119 |  |  |  |  |  |  | my $self   = shift; | 
| 120 |  |  |  |  |  |  | my $sDeletedField = shift; | 
| 121 |  |  |  |  |  |  | $self->getRequestDataType()->setDeletedField($sDeletedField); | 
| 122 |  |  |  |  |  |  | } | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | =head2 setItem() | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | Child elements hold the values for item properties that change for the | 
| 127 |  |  |  |  |  |  | item re-list. Item is a required input. At a minimum, the Item.ItemID | 
| 128 |  |  |  |  |  |  | property must be set to the ID of the listing being re-listed (a | 
| 129 |  |  |  |  |  |  | listing that ended in the past 90 days). By default, the new listing's | 
| 130 |  |  |  |  |  |  | Item object properties are the same as those of the original (ended) | 
| 131 |  |  |  |  |  |  | listing. By setting a new value in the Item object, the new listing | 
| 132 |  |  |  |  |  |  | uses the new value rather than the corresponding value from the old | 
| 133 |  |  |  |  |  |  | listing. | 
| 134 |  |  |  |  |  |  |  | 
| 135 |  |  |  |  |  |  | RequiredInput: Yes | 
| 136 |  |  |  |  |  |  | #    Argument: 'ns:ItemType' | 
| 137 |  |  |  |  |  |  |  | 
| 138 |  |  |  |  |  |  | =cut | 
| 139 |  |  |  |  |  |  |  | 
| 140 |  |  |  |  |  |  | sub setItem { | 
| 141 |  |  |  |  |  |  | my $self   = shift; | 
| 142 |  |  |  |  |  |  | my $pItem = shift; | 
| 143 |  |  |  |  |  |  | $self->getRequestDataType()->setItem($pItem); | 
| 144 |  |  |  |  |  |  | } | 
| 145 |  |  |  |  |  |  |  | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  |  | 
| 148 |  |  |  |  |  |  | # | 
| 149 |  |  |  |  |  |  | # output properties | 
| 150 |  |  |  |  |  |  | # | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | =head2 getCategory2ID() | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | ID of the secondary category in which the item was listed. | 
| 155 |  |  |  |  |  |  | Only returned if you set Item.CategoryMappingAllowed to true in the request | 
| 156 |  |  |  |  |  |  | and the ID passed in Item.SecondaryCategory was mapped to a new ID by eBay. | 
| 157 |  |  |  |  |  |  | If the secondary category has not changed or it has expired with no replacement, | 
| 158 |  |  |  |  |  |  | Category2ID does not return a value. | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | Returned: Conditionally | 
| 161 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | =cut | 
| 164 |  |  |  |  |  |  |  | 
| 165 |  |  |  |  |  |  | sub getCategory2ID { | 
| 166 |  |  |  |  |  |  | my $self = shift; | 
| 167 |  |  |  |  |  |  | return $self->getResponseDataType()->getCategory2ID(); | 
| 168 |  |  |  |  |  |  | } | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | =head2 getCategoryID() | 
| 171 |  |  |  |  |  |  |  | 
| 172 |  |  |  |  |  |  | ID of the primary category in which the item was listed. | 
| 173 |  |  |  |  |  |  | Only returned if you set Item.CategoryMappingAllowed to true in the request | 
| 174 |  |  |  |  |  |  | and the ID passed in Item.PrimaryCategory was mapped to a new ID by eBay. | 
| 175 |  |  |  |  |  |  | If the primary category has not changed or it has expired with no replacement, | 
| 176 |  |  |  |  |  |  | CategoryID does not return a value. | 
| 177 |  |  |  |  |  |  |  | 
| 178 |  |  |  |  |  |  | Returned: Conditionally | 
| 179 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 180 |  |  |  |  |  |  |  | 
| 181 |  |  |  |  |  |  | =cut | 
| 182 |  |  |  |  |  |  |  | 
| 183 |  |  |  |  |  |  | sub getCategoryID { | 
| 184 |  |  |  |  |  |  | my $self = shift; | 
| 185 |  |  |  |  |  |  | return $self->getResponseDataType()->getCategoryID(); | 
| 186 |  |  |  |  |  |  | } | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  | =head2 getEndTime() | 
| 189 |  |  |  |  |  |  |  | 
| 190 |  |  |  |  |  |  | Date and time when the new listing ends. This is the starting time plus | 
| 191 |  |  |  |  |  |  | the listing duration. | 
| 192 |  |  |  |  |  |  |  | 
| 193 |  |  |  |  |  |  | Returned: Always | 
| 194 |  |  |  |  |  |  | #    Returns: 'xs:dateTime' | 
| 195 |  |  |  |  |  |  |  | 
| 196 |  |  |  |  |  |  | =cut | 
| 197 |  |  |  |  |  |  |  | 
| 198 |  |  |  |  |  |  | sub getEndTime { | 
| 199 |  |  |  |  |  |  | my $self = shift; | 
| 200 |  |  |  |  |  |  | return $self->getResponseDataType()->getEndTime(); | 
| 201 |  |  |  |  |  |  | } | 
| 202 |  |  |  |  |  |  |  | 
| 203 |  |  |  |  |  |  | =head2 getFees() | 
| 204 |  |  |  |  |  |  |  | 
| 205 |  |  |  |  |  |  | Child elements contain the estimated listing fees for the new item | 
| 206 |  |  |  |  |  |  | listing. The fees do not include the Final Value Fee (FVF), which cannot | 
| 207 |  |  |  |  |  |  | be determined until an item is sold. | 
| 208 |  |  |  |  |  |  |  | 
| 209 |  |  |  |  |  |  | Returned: Always | 
| 210 |  |  |  |  |  |  | #    Returns: 'ns:FeesType' | 
| 211 |  |  |  |  |  |  |  | 
| 212 |  |  |  |  |  |  | =cut | 
| 213 |  |  |  |  |  |  |  | 
| 214 |  |  |  |  |  |  | sub getFees { | 
| 215 |  |  |  |  |  |  | my $self = shift; | 
| 216 |  |  |  |  |  |  | return $self->getResponseDataType()->getFees(); | 
| 217 |  |  |  |  |  |  | } | 
| 218 |  |  |  |  |  |  |  | 
| 219 |  |  |  |  |  |  | =head2 getItemID() | 
| 220 |  |  |  |  |  |  |  | 
| 221 |  |  |  |  |  |  | Unique item ID for the new listing. | 
| 222 |  |  |  |  |  |  |  | 
| 223 |  |  |  |  |  |  | Returned: Always | 
| 224 |  |  |  |  |  |  | #    Returns: 'ns:ItemIDType' | 
| 225 |  |  |  |  |  |  |  | 
| 226 |  |  |  |  |  |  | =cut | 
| 227 |  |  |  |  |  |  |  | 
| 228 |  |  |  |  |  |  | sub getItemID { | 
| 229 |  |  |  |  |  |  | my $self = shift; | 
| 230 |  |  |  |  |  |  | return $self->getResponseDataType()->getItemID(); | 
| 231 |  |  |  |  |  |  | } | 
| 232 |  |  |  |  |  |  |  | 
| 233 |  |  |  |  |  |  | =head2 getStartTime() | 
| 234 |  |  |  |  |  |  |  | 
| 235 |  |  |  |  |  |  | Date and time the new listing became active on the eBay site. | 
| 236 |  |  |  |  |  |  |  | 
| 237 |  |  |  |  |  |  | Returned: Always | 
| 238 |  |  |  |  |  |  | #    Returns: 'xs:dateTime' | 
| 239 |  |  |  |  |  |  |  | 
| 240 |  |  |  |  |  |  | =cut | 
| 241 |  |  |  |  |  |  |  | 
| 242 |  |  |  |  |  |  | sub getStartTime { | 
| 243 |  |  |  |  |  |  | my $self = shift; | 
| 244 |  |  |  |  |  |  | return $self->getResponseDataType()->getStartTime(); | 
| 245 |  |  |  |  |  |  | } | 
| 246 |  |  |  |  |  |  |  | 
| 247 |  |  |  |  |  |  |  | 
| 248 |  |  |  |  |  |  |  | 
| 249 |  |  |  |  |  |  |  | 
| 250 |  |  |  |  |  |  |  | 
| 251 |  |  |  |  |  |  | 1; |