File Coverage

lib/eBay/API/XML/Call/GetItemTransactions.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::GetItemTransactions;
4              
5 1     1   4824 use strict;
  1         3  
  1         51  
6 1     1   9 use warnings;
  1         2  
  1         47  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetItemTransactions.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::GetItemTransactions
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetItemTransactions inherits from the L class
34              
35             =cut
36              
37 1     1   59 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetItemTransactions::GetItemTransactionsRequestType;
41             use eBay::API::XML::Call::GetItemTransactions::GetItemTransactionsResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetItemTransactions';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetItemTransactions::GetItemTransactionsRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetItemTransactions::GetItemTransactionsResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setIncludeContainingOrder()
63              
64             Whether to retrieve the order information.
65             Default is false.
66             Will not return the ContainingOrder information for an Express transaction that was part of an Express order.
67              
68             RequiredInput: No
69             # Argument: 'xs:boolean'
70              
71             =cut
72            
73             sub setIncludeContainingOrder {
74             my $self = shift;
75             my $sIncludeContainingOrder = shift;
76             $self->getRequestDataType()->setIncludeContainingOrder($sIncludeContainingOrder);
77             }
78              
79             =head2 setIncludeFinalValueFee()
80              
81             Indicates whether to include final value fees in the response.
82             For most listing types, the fee is returned in Transaction.FinalValueFee.
83             For Dutch auctions that end with bids (not Buy It Now purchases), the fee
84             is returned in Item.SellingStatus.FinalValueFee.
85             The Final Value Fee for FixedPriceItem, StoresFixedPrice, and Buy It Now
86             Dutch listing types is returned on a transaction by transaction basis.
87             For all other listing types, including Chinese and Dutch (no Buy It Now
88             purchases), the Final Value Fee is returned when the listing status is
89             Completed.
90              
91             RequiredInput: No
92             # Argument: 'xs:boolean'
93              
94             =cut
95            
96             sub setIncludeFinalValueFee {
97             my $self = shift;
98             my $sIncludeFinalValueFee = shift;
99             $self->getRequestDataType()->setIncludeFinalValueFee($sIncludeFinalValueFee);
100             }
101              
102             =head2 setItemID()
103              
104             Unique item ID for the item for which to retrieve transactions.
105              
106             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
107              
108             RequiredInput: Yes
109             # Argument: 'ns:ItemIDType'
110              
111             =cut
112            
113             sub setItemID {
114             my $self = shift;
115             my $pItemID = shift;
116             $self->getRequestDataType()->setItemID($pItemID);
117             }
118              
119             =head2 setModTimeFrom()
120              
121             Also see NumberOfDays which, if used, takes precedence over ModTimeFrom and
122             ModTimeTo. If you prefer to use ModTimeFrom and
123             ModTimeTo, you specify the time range within which
124             retrieved transactions' statuses were modified.
125             ModTimeFrom is the earlier (older) date and ModTimeTo is the later (more recent) date.
126             If you specify this value, and do not specify the other end of the range,
127             then the time range is 30 days.
128             The time range between ModTimeFrom to ModTimeTo
129             cannot be greater than 30 days.
130              
131             RequiredInput: No
132             # Argument: 'xs:dateTime'
133              
134             =cut
135            
136             sub setModTimeFrom {
137             my $self = shift;
138             my $sModTimeFrom = shift;
139             $self->getRequestDataType()->setModTimeFrom($sModTimeFrom);
140             }
141              
142             =head2 setModTimeTo()
143              
144             Also see NumberOfDays which, if used, takes precedence over ModTimeFrom and
145             ModTimeTo. If you prefer to use ModTimeFrom and
146             ModTimeTo, you specify the time range within which
147             retrieved transactions' statuses were modified.
148             ModTimeFrom is the earlier (older) date and ModTimeTo is the later (more recent) date.
149             If you specify this value, and do not specify the other end of the range,
150             then the time range is 30 days.
151             The time range between ModTimeFrom to ModTimeTo
152             cannot be greater than 30 days.
153              
154             RequiredInput: No
155             # Argument: 'xs:dateTime'
156              
157             =cut
158            
159             sub setModTimeTo {
160             my $self = shift;
161             my $sModTimeTo = shift;
162             $self->getRequestDataType()->setModTimeTo($sModTimeTo);
163             }
164              
165             =head2 setNumberOfDays()
166              
167             NumberOfDays enables you to specify the number of days' worth
168             of new and modified transactions that you want to retrieve.
169             The call response contains the transactions
170             whose status was modified within the
171             specified number of days since the API call was made.
172             NumberOfDays is often preferable to using
173             the ModTimeFrom and ModTimeTo filters because you only need to specify
174             one value.
175             If you use NumberOfDays, then ModTimeFrom and ModTimeTo are ignored.
176             For this field, one day is defined as 24 hours.
177              
178             Max: 30
179              
180             RequiredInput: No
181             # Argument: 'xs:int'
182              
183             =cut
184            
185             sub setNumberOfDays {
186             my $self = shift;
187             my $sNumberOfDays = shift;
188             $self->getRequestDataType()->setNumberOfDays($sNumberOfDays);
189             }
190              
191             =head2 setPagination()
192              
193             Child elements control pagination of the output. Use its EntriesPerPage
194             property to control the number of transactions to return per call and its
195             PageNumber property to specify the page of data to return.
196              
197             RequiredInput: No
198             # Argument: 'ns:PaginationType'
199              
200             =cut
201            
202             sub setPagination {
203             my $self = shift;
204             my $pPagination = shift;
205             $self->getRequestDataType()->setPagination($pPagination);
206             }
207              
208             =head2 setPlatform()
209              
210             Name of the eBay co-branded site upon which the transaction was made.
211             This will serve as a filter for the transactions to get emitted in the response.
212              
213             RequiredInput: No
214             # Argument: 'ns:TransactionPlatformCodeType'
215              
216             =cut
217            
218             sub setPlatform {
219             my $self = shift;
220             my $sPlatform = shift;
221             $self->getRequestDataType()->setPlatform($sPlatform);
222             }
223              
224             =head2 setTransactionID()
225              
226             Identifies one transaction for a listing.
227             For Chinese auctions listings (single-item listings for which there can be
228             only one transaction), TransactionID is always 0, and for multi-quantity
229             listings (for which there can be multiple transactions), TransactionID has
230             a non-0 value.
231             To determine the valid transaction IDs
232             for a listing, you typically need to have previously executed GetItemTransactionsCall
233             or GetSellerTransactionsCall and stored all the listing's transactions.
234              
235             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
236              
237             RequiredInput: No
238             # Argument: 'xs:string'
239              
240             =cut
241            
242             sub setTransactionID {
243             my $self = shift;
244             my $sTransactionID = shift;
245             $self->getRequestDataType()->setTransactionID($sTransactionID);
246             }
247              
248              
249              
250             #
251             # output properties
252             #
253              
254             =head2 isHasMoreTransactions()
255              
256             Indicates whether there are additional transactions to retrieve.
257             That is, indicates whether more pages of data are available to be
258             returned, given the filters that were specified in the request.
259             Returns false for the last page of data.
260              
261             Returned: Always
262             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
263             # Returns: 'xs:boolean'
264              
265             =cut
266            
267             sub isHasMoreTransactions {
268             my $self = shift;
269             return $self->getResponseDataType()->isHasMoreTransactions();
270             }
271              
272             =head2 getItem()
273              
274             Item object that spawned the transaction. It is a purchase from this item's listing
275             that the transaction represents.
276              
277             Returned: Always
278             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
279             # Returns: 'ns:ItemType'
280              
281             =cut
282            
283             sub getItem {
284             my $self = shift;
285             return $self->getResponseDataType()->getItem();
286             }
287              
288             =head2 getPageNumber()
289              
290             Page number for the page of transactions the response returned.
291              
292             Returned: Always
293             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
294             # Returns: 'xs:int'
295              
296             =cut
297            
298             sub getPageNumber {
299             my $self = shift;
300             return $self->getResponseDataType()->getPageNumber();
301             }
302              
303             =head2 getPaginationResult()
304              
305             Contains the total number of pages (TotalNumberOfPages) and the total number
306             of entries (TotalNumberOfEntries) that could be returned given repeated calls
307             that use the same selection criteria as the call that returned this response.
308              
309             Returned: Always
310             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
311             # Returns: 'ns:PaginationResultType'
312              
313             =cut
314            
315             sub getPaginationResult {
316             my $self = shift;
317             return $self->getResponseDataType()->getPaginationResult();
318             }
319              
320             =head2 isPayPalPreferred()
321              
322             Indicates whether the item's seller has the preference enabled that shows
323             that the seller prefers PayPal as the method of payment for an item. This
324             preference is indicated on an item's View Item page and is intended to
325             influence a buyer to use PayPal
326             to pay for the item.
327              
328             Returned: Always
329             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
330             # Returns: 'xs:boolean'
331              
332             =cut
333            
334             sub isPayPalPreferred {
335             my $self = shift;
336             return $self->getResponseDataType()->isPayPalPreferred();
337             }
338              
339             =head2 getReturnedTransactionCountActual()
340              
341             Number of transactions retrieved in the current page of results just returned.
342             May be a lower value than TransactionsPerPage if the page returned is the last
343             page and more than one page of data exists.
344              
345             Returned: Always
346             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
347             # Returns: 'xs:int'
348              
349             =cut
350            
351             sub getReturnedTransactionCountActual {
352             my $self = shift;
353             return $self->getResponseDataType()->getReturnedTransactionCountActual();
354             }
355              
356             =head2 getTransactionArray()
357              
358             List of Transaction objects representing the transactions resulting
359             from the listing. Each Transaction object contains the data for one purchase
360             (of one or more items in the same listing). The Transaction.Item field is not
361             returned because the Item object is returned at the root level of the response.
362             See the reference guide for more information about the fields that are returned.
363              
364             Returned: Conditionally
365             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
366             # Returns: 'ns:TransactionArrayType'
367              
368             =cut
369            
370             sub getTransactionArray {
371             my $self = shift;
372             return $self->getResponseDataType()->getTransactionArray();
373             }
374              
375             =head2 getTransactionsPerPage()
376              
377             Number of transactions returned per page (per call). May be a higher value
378             than ReturnedTransactionCountActual if the page returned is the last page
379             and more than one page of data exists.
380              
381             Returned: Always
382             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
383             # Returns: 'xs:int'
384              
385             =cut
386            
387             sub getTransactionsPerPage {
388             my $self = shift;
389             return $self->getResponseDataType()->getTransactionsPerPage();
390             }
391              
392              
393              
394              
395              
396             1;