File Coverage

lib/eBay/API/XML/Call/CompleteSale/CompleteSaleRequestType.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::CompleteSale::CompleteSaleRequestType;
4              
5 1     1   1372 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         1  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CompleteSaleRequestType.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::CompleteSale::CompleteSaleRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables a seller to do various tasks after an item transaction or
25             multiple-item order has been created.
26             A seller can leave feedback for the buyer, change the paid status,
27             or set shipment tracking information (or any combination of these).
28             Only the seller who listed the item or order can perform these tasks.
29            

30             Applies to Half.com, except when using OrderID.
31              
32              
33              
34             =head1 SYNOPSIS
35              
36             =cut
37              
38              
39             =head1 INHERITANCE
40              
41             eBay::API::XML::Call::CompleteSale::CompleteSaleRequestType inherits from the L class
42              
43             =cut
44              
45 1     1   32 use eBay::API::XML::RequestDataType;
  0            
  0            
46             our @ISA = ("eBay::API::XML::RequestDataType");
47              
48             use eBay::API::XML::DataType::FeedbackInfoType;
49             use eBay::API::XML::DataType::ItemIDType;
50             use eBay::API::XML::DataType::ShipmentType;
51             use eBay::API::XML::DataType::Enum::ListingTypeCodeType;
52              
53              
54             my @gaProperties = ( [ 'FeedbackInfo', 'ns:FeedbackInfoType', ''
55             ,'eBay::API::XML::DataType::FeedbackInfoType', '1' ]
56             , [ 'ItemID', 'ns:ItemIDType', ''
57             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
58             , [ 'ListingType', 'ns:ListingTypeCodeType', ''
59             ,'eBay::API::XML::DataType::Enum::ListingTypeCodeType', '' ]
60             , [ 'OrderID', 'xs:string', '', '', '' ]
61             , [ 'Paid', 'xs:boolean', '', '', '' ]
62             , [ 'Shipment', 'ns:ShipmentType', ''
63             ,'eBay::API::XML::DataType::ShipmentType', '1' ]
64             , [ 'Shipped', 'xs:boolean', '', '', '' ]
65             , [ 'TransactionID', 'xs:string', '', '', '' ]
66             );
67             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
68              
69             my @gaAttributes = (
70             );
71             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
72              
73             =head1 Subroutines:
74              
75             =cut
76              
77             sub new {
78             my $classname = shift;
79             my %args = @_;
80             my $self = $classname->SUPER::new(%args);
81             return $self;
82             }
83              
84             sub isScalar {
85             return 0;
86             }
87              
88              
89              
90             =head2 setFeedbackInfo()
91              
92             Specifies feedback the seller is leaving for the buyer.
93             For a given transaction, the seller can leave feedback once,
94             and no further modifications can be made to that feedback entry.
95             If feedback has already been left, FeedbackInfo is not allowed.
96             Call GetFeedback to determine whether feedback has already been left.
97              
98             RequiredInput: No
99             # Argument: 'ns:FeedbackInfoType'
100              
101             =cut
102              
103             sub setFeedbackInfo {
104             my $self = shift;
105             $self->{'FeedbackInfo'} = shift
106             }
107              
108             =head2 getFeedbackInfo()
109              
110             # Returns: 'ns:FeedbackInfoType'
111              
112             =cut
113              
114             sub getFeedbackInfo {
115             my $self = shift;
116             return $self->_getDataTypeInstance( 'FeedbackInfo'
117             ,'eBay::API::XML::DataType::FeedbackInfoType');
118             }
119              
120              
121             =head2 setItemID()
122              
123             ID of the listing associated with the transaction that the
124             seller is completing.
125              
126             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
127              
128             RequiredInput: Yes
129             # Argument: 'ns:ItemIDType'
130              
131             =cut
132              
133             sub setItemID {
134             my $self = shift;
135             $self->{'ItemID'} = shift
136             }
137              
138             =head2 getItemID()
139              
140             # Returns: 'ns:ItemIDType'
141              
142             =cut
143              
144             sub getItemID {
145             my $self = shift;
146             return $self->_getDataTypeInstance( 'ItemID'
147             ,'eBay::API::XML::DataType::ItemIDType');
148             }
149              
150              
151             =head2 setListingType()
152              
153             If included in the request, and with a value of
154             ListingType = Half, indicates that the given ItemID and
155             TransactionID values are for Half.com. ListingType is
156             required input for Half.com items.
157              
158             RequiredInput: Conditionally
159             OnlyTheseValues: Half
160             # Argument: 'ns:ListingTypeCodeType'
161              
162             =cut
163              
164             sub setListingType {
165             my $self = shift;
166             $self->{'ListingType'} = shift
167             }
168              
169             =head2 getListingType()
170              
171             # Returns: 'ns:ListingTypeCodeType'
172              
173             =cut
174              
175             sub getListingType {
176             my $self = shift;
177             return $self->{'ListingType'};
178             }
179              
180              
181             =head2 setOrderID()
182              
183             Unique ID for a multi-item order. ItemID and TransactionID are
184             ignored if a call includes OrderID. CompleteSale applies to the
185             specified order as a whole (and thus the child transactions
186             associated with the order).
187            
188             This tag does not apply to half.com items.
189              
190             RequiredInput: No
191             # Argument: 'xs:string'
192              
193             =cut
194              
195             sub setOrderID {
196             my $self = shift;
197             $self->{'OrderID'} = shift
198             }
199              
200             =head2 getOrderID()
201              
202             # Returns: 'xs:string'
203              
204             =cut
205              
206             sub getOrderID {
207             my $self = shift;
208             return $self->{'OrderID'};
209             }
210              
211              
212             =head2 setPaid()
213              
214             If true, the transaction is marked as paid in My eBay.
215             If false, the transaction is marked as not paid in My eBay.
216             If not specified, the paid status in My eBay is not modified.
217              
218             RequiredInput: No
219             # Argument: 'xs:boolean'
220              
221             =cut
222              
223             sub setPaid {
224             my $self = shift;
225             $self->{'Paid'} = shift
226             }
227              
228             =head2 isPaid()
229              
230             # Returns: 'xs:boolean'
231              
232             =cut
233              
234             sub isPaid {
235             my $self = shift;
236             return $self->{'Paid'};
237             }
238              
239              
240             =head2 setShipment()
241              
242             Details about the shipment. Setting the tracking number and carrier
243             automatically marks the item as shipped (sets Shipped to true).
244              
245             RequiredInput: No
246             # Argument: 'ns:ShipmentType'
247              
248             =cut
249              
250             sub setShipment {
251             my $self = shift;
252             $self->{'Shipment'} = shift
253             }
254              
255             =head2 getShipment()
256              
257             # Returns: 'ns:ShipmentType'
258              
259             =cut
260              
261             sub getShipment {
262             my $self = shift;
263             return $self->_getDataTypeInstance( 'Shipment'
264             ,'eBay::API::XML::DataType::ShipmentType');
265             }
266              
267              
268             =head2 setShipped()
269              
270             If true, the transaction is marked as shipped in My eBay
271             (applicable for Selling Manager Pro users).
272             If false, the transaction is marked as not shipped in My eBay.
273             If not specified, the shipped status in My eBay is not modified.
274              
275             RequiredInput: No
276             # Argument: 'xs:boolean'
277              
278             =cut
279              
280             sub setShipped {
281             my $self = shift;
282             $self->{'Shipped'} = shift
283             }
284              
285             =head2 isShipped()
286              
287             # Returns: 'xs:boolean'
288              
289             =cut
290              
291             sub isShipped {
292             my $self = shift;
293             return $self->{'Shipped'};
294             }
295              
296              
297             =head2 setTransactionID()
298              
299             Unique identifier for a transaction from the listing indicated by ItemID.
300             Call GetItemTransactions or GetSellerTransactions to determine
301             the appropriate transaction ID.
302             Required for all listing types (pass 0 for Chinese auctions).
303              
304             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
305              
306             RequiredInput: Yes
307             # Argument: 'xs:string'
308              
309             =cut
310              
311             sub setTransactionID {
312             my $self = shift;
313             $self->{'TransactionID'} = shift
314             }
315              
316             =head2 getTransactionID()
317              
318             # Returns: 'xs:string'
319              
320             =cut
321              
322             sub getTransactionID {
323             my $self = shift;
324             return $self->{'TransactionID'};
325             }
326              
327              
328              
329              
330              
331             ## Attribute and Property lists
332             sub getPropertiesList {
333             my $self = shift;
334             return \@gaProperties;
335             }
336              
337             sub getAttributesList {
338             my $self = shift;
339             return \@gaAttributes;
340             }
341              
342              
343              
344             1;