File Coverage

lib/eBay/API/XML/Call/EndItem/EndItemRequestType.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::EndItem::EndItemRequestType;
4              
5 1     1   1362 use strict;
  1         1  
  1         25  
6 1     1   4 use warnings;
  1         1  
  1         29  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. EndItemRequestType.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::EndItem::EndItemRequestType
21              
22             =head1 DESCRIPTION
23              
24             Ends the specified item listing before the date and time at which
25             it would normally end (per the listing duration).
26            
27            
28             For competitive-bidding listings that have bids on them, you must specify an
29             EndingReason value. If you specify SellToHighBidder, the listing ends as a
30             successful auction with winning bidder(s). Otherwise, all bids are cancelled
31             before the item is ended.
32            
33            
34             There are two restrictions for ending items early in the last 12 hours of a
35             listing. If there is a qualified bid (i.e., current high bid that, when
36             applicable, meets the minimum reserve price) in the last 12 hours of a listing,
37             the seller cannot end the item early. If the seller has cancelled a bid in the
38             last 12 hours of the listing, the seller cannot end the item early.
39            
40            
41             Only the item's seller can use EndItem to end an item listing.
42             Applicable to items listed on eBay.com and Half.com.
43             For eBay Live Auctions, you cannot delete items that have been closed or that
44             are part of a Live Auction event that has started.
45              
46              
47              
48             =head1 SYNOPSIS
49              
50             =cut
51              
52              
53             =head1 INHERITANCE
54              
55             eBay::API::XML::Call::EndItem::EndItemRequestType inherits from the L class
56              
57             =cut
58              
59 1     1   32 use eBay::API::XML::RequestDataType;
  0            
  0            
60             our @ISA = ("eBay::API::XML::RequestDataType");
61              
62             use eBay::API::XML::DataType::ItemIDType;
63             use eBay::API::XML::DataType::Enum::EndReasonCodeType;
64              
65              
66             my @gaProperties = ( [ 'EndingReason', 'ns:EndReasonCodeType', ''
67             ,'eBay::API::XML::DataType::Enum::EndReasonCodeType', '' ]
68             , [ 'ItemID', 'ns:ItemIDType', ''
69             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
70             , [ 'SellerInventoryID', 'xs:string', '', '', '' ]
71             );
72             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
73              
74             my @gaAttributes = (
75             );
76             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
77              
78             =head1 Subroutines:
79              
80             =cut
81              
82             sub new {
83             my $classname = shift;
84             my %args = @_;
85             my $self = $classname->SUPER::new(%args);
86             return $self;
87             }
88              
89             sub isScalar {
90             return 0;
91             }
92              
93              
94              
95             =head2 setEndingReason()
96              
97             Indicates the seller's reason for ending the listing early.
98             This field is required if the seller is ending the item early and
99             the item did not successfully sell.
100             Also applicable to Half.com.
101              
102             RequiredInput: Yes
103             # Argument: 'ns:EndReasonCodeType'
104              
105             =cut
106              
107             sub setEndingReason {
108             my $self = shift;
109             $self->{'EndingReason'} = shift
110             }
111              
112             =head2 getEndingReason()
113              
114             # Returns: 'ns:EndReasonCodeType'
115              
116             =cut
117              
118             sub getEndingReason {
119             my $self = shift;
120             return $self->{'EndingReason'};
121             }
122              
123              
124             =head2 setItemID()
125              
126             Unique item ID that identifies the item listing to end.
127             Also applicable to Half.com. For Half.com listings, you can either
128             specify ItemID or SellerInventoryID.
129             For eBay Live Auctions, you cannot delete items that have been closed
130             or that are part of a Live Auction event that has started.
131              
132             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
133              
134             RequiredInput: Yes
135             # Argument: 'ns:ItemIDType'
136              
137             =cut
138              
139             sub setItemID {
140             my $self = shift;
141             $self->{'ItemID'} = shift
142             }
143              
144             =head2 getItemID()
145              
146             # Returns: 'ns:ItemIDType'
147              
148             =cut
149              
150             sub getItemID {
151             my $self = shift;
152             return $self->_getDataTypeInstance( 'ItemID'
153             ,'eBay::API::XML::DataType::ItemIDType');
154             }
155              
156              
157             =head2 setSellerInventoryID()
158              
159             Unique identifier that the seller specified when they listed the
160             Half.com item. For Half.com items, you can either specify ItemID or
161             SellerInventoryID. If you specify both ItemID and SellerInventoryID,
162             they must be for the same item (otherwise an error will occur).
163             Only applicable to Half.com.
164              
165             RequiredInput: Conditionally
166             # Argument: 'xs:string'
167              
168             =cut
169              
170             sub setSellerInventoryID {
171             my $self = shift;
172             $self->{'SellerInventoryID'} = shift
173             }
174              
175             =head2 getSellerInventoryID()
176              
177             # Returns: 'xs:string'
178              
179             =cut
180              
181             sub getSellerInventoryID {
182             my $self = shift;
183             return $self->{'SellerInventoryID'};
184             }
185              
186              
187              
188              
189              
190             ## Attribute and Property lists
191             sub getPropertiesList {
192             my $self = shift;
193             return \@gaProperties;
194             }
195              
196             sub getAttributesList {
197             my $self = shift;
198             return \@gaAttributes;
199             }
200              
201              
202              
203             1;