File Coverage

lib/eBay/API/XML/Call/GetSellerTransactions.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::GetSellerTransactions;
4              
5 1     1   2399 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         2  
  1         38  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetSellerTransactions.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::GetSellerTransactions
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetSellerTransactions inherits from the L class
34              
35             =cut
36              
37 1     1   44 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetSellerTransactions::GetSellerTransactionsRequestType;
41             use eBay::API::XML::Call::GetSellerTransactions::GetSellerTransactionsResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetSellerTransactions';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetSellerTransactions::GetSellerTransactionsRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetSellerTransactions::GetSellerTransactionsResponseType';
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 setModTimeFrom()
103              
104             Also see NumberOfDays which, if used, takes precedence over ModTimeFrom and
105             ModTimeTo. If you prefer to use ModTimeFrom and
106             ModTimeTo, you specify the time range within which
107             retrieved transactions' statuses were modified.
108             ModTimeFrom is the earlier (older) date and ModTimeTo is the later (more recent) date.
109             If you specify this value, and do not specify the other end of the range,
110             then the time range is 30 days.
111             The time range between ModTimeFrom to ModTimeTo
112             cannot be greater than 30 days.
113              
114             RequiredInput: No
115             # Argument: 'xs:dateTime'
116              
117             =cut
118            
119             sub setModTimeFrom {
120             my $self = shift;
121             my $sModTimeFrom = shift;
122             $self->getRequestDataType()->setModTimeFrom($sModTimeFrom);
123             }
124              
125             =head2 setModTimeTo()
126              
127             Also see NumberOfDays which, if used, takes precedence over ModTimeFrom and
128             ModTimeTo. If you prefer to use ModTimeFrom and
129             ModTimeTo, you specify the time range within which
130             retrieved transactions' statuses were modified.
131             ModTimeFrom is the earlier (older) date and ModTimeTo is the later (more recent) date.
132             If you specify this value, and do not specify the other end of the range,
133             then the time range is 30 days.
134             The time range between ModTimeFrom to ModTimeTo
135             cannot be greater than 30 days.
136              
137             RequiredInput: No
138             # Argument: 'xs:dateTime'
139              
140             =cut
141            
142             sub setModTimeTo {
143             my $self = shift;
144             my $sModTimeTo = shift;
145             $self->getRequestDataType()->setModTimeTo($sModTimeTo);
146             }
147              
148             =head2 setNumberOfDays()
149              
150             NumberOfDays enables you to specify the number of days' worth
151             of new and modified transactions that you want to retrieve.
152             The call response contains the transactions
153             whose status was modified within the
154             specified number of days since the API call was made.
155             NumberOfDays is often preferable to using
156             the ModTimeFrom and ModTimeTo filters because you only need to specify
157             one value.
158             If you use NumberOfDays, then ModTimeFrom and ModTimeTo are ignored.
159             For this field, one day is defined as 24 hours.
160              
161             Max: 30
162              
163             RequiredInput: No
164             # Argument: 'xs:int'
165              
166             =cut
167            
168             sub setNumberOfDays {
169             my $self = shift;
170             my $sNumberOfDays = shift;
171             $self->getRequestDataType()->setNumberOfDays($sNumberOfDays);
172             }
173              
174             =head2 setPagination()
175              
176             Child elements control pagination of the output. Use its EntriesPerPage
177             property to control the number of transactions to return per call and its
178             PageNumber property to specify the page of data to return.
179              
180             RequiredInput: No
181             # Argument: 'ns:PaginationType'
182              
183             =cut
184            
185             sub setPagination {
186             my $self = shift;
187             my $pPagination = shift;
188             $self->getRequestDataType()->setPagination($pPagination);
189             }
190              
191             =head2 setPlatform()
192              
193             Name of the eBay co-branded site upon which the transaction was made.
194             This will serve as a filter for the transactions to get emitted in the response.
195              
196             RequiredInput: No
197             # Argument: 'ns:TransactionPlatformCodeType'
198              
199             =cut
200            
201             sub setPlatform {
202             my $self = shift;
203             my $sPlatform = shift;
204             $self->getRequestDataType()->setPlatform($sPlatform);
205             }
206              
207             =head2 setSKUArray()
208              
209             Specifies a set of seller SKUs to use as a filter. Only items with the
210             specified SKUs are returned. Do not specify this tag if you do not want to
211             filter by SKU. Corresponds to the SKU property that is part of ItemType
212             and that can be provided when, for example, you use the AddItem call.
213              
214             RequiredInput: No
215             # Argument: 'ns:SKUArrayType'
216              
217             =cut
218            
219             sub setSKUArray {
220             my $self = shift;
221             my $pSKUArray = shift;
222             $self->getRequestDataType()->setSKUArray($pSKUArray);
223             }
224              
225              
226              
227             #
228             # output properties
229             #
230              
231             =head2 isHasMoreTransactions()
232              
233             Indicates whether there are additional transactions to retrieve.
234             That is, indicates whether more pages of data are available to be
235             returned, given the filters that were specified in the request.
236             Returns false for the last page of data.
237              
238             Returned: Always
239             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
240             # Returns: 'xs:boolean'
241              
242             =cut
243            
244             sub isHasMoreTransactions {
245             my $self = shift;
246             return $self->getResponseDataType()->isHasMoreTransactions();
247             }
248              
249             =head2 getPageNumber()
250              
251             Page number for the page of transactions the response returned.
252              
253             Returned: Always
254             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
255             # Returns: 'xs:int'
256              
257             =cut
258            
259             sub getPageNumber {
260             my $self = shift;
261             return $self->getResponseDataType()->getPageNumber();
262             }
263              
264             =head2 getPaginationResult()
265              
266             Contains the total number of pages (TotalNumberOfPages) and the total number
267             of entries (TotalNumberOfEntries) that could be returned given repeated calls
268             that use the same selection criteria as the call that returned this response.
269              
270             Returned: Always
271             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
272             # Returns: 'ns:PaginationResultType'
273              
274             =cut
275            
276             sub getPaginationResult {
277             my $self = shift;
278             return $self->getResponseDataType()->getPaginationResult();
279             }
280              
281             =head2 isPayPalPreferred()
282              
283             Indicates whether the seller has the preference enabled that shows that the seller
284             prefers PayPal as the method of payment for an item. This preference is indicated on
285             an item's View Item page and is intended to influence a buyer to use PayPal
286             to pay for the item.
287              
288             Returned: Always
289             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
290             # Returns: 'xs:boolean'
291              
292             =cut
293            
294             sub isPayPalPreferred {
295             my $self = shift;
296             return $self->getResponseDataType()->isPayPalPreferred();
297             }
298              
299             =head2 getReturnedTransactionCountActual()
300              
301             Number of transactions retrieved in the current page of results just returned.
302             May be a lower value than TransactionsPerPage if the page returned is the last
303             page and more than one page of data exists.
304              
305             Returned: Always
306             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
307             # Returns: 'xs:int'
308              
309             =cut
310            
311             sub getReturnedTransactionCountActual {
312             my $self = shift;
313             return $self->getResponseDataType()->getReturnedTransactionCountActual();
314             }
315              
316             =head2 getSeller()
317              
318             Contains information about the seller whose transactions are being returned.
319             See the reference guide for information about the fields of the Seller object
320             that are returned.
321              
322             Returned: Always
323             Details: DetailLevel: none, ReturnAll
324             # Returns: 'ns:UserType'
325              
326             =cut
327            
328             sub getSeller {
329             my $self = shift;
330             return $self->getResponseDataType()->getSeller();
331             }
332              
333             =head2 getTransactionArray()
334              
335             List of Transaction objects representing the seller's recent sales.
336             Each Transaction object contains the data for one purchase
337             (of one or more items in the same listing).
338             See the reference guide for more information about the fields that are returned
339             for each transaction.
340              
341             Returned: Conditionally
342             Details: DetailLevel: none, ReturnAll
343             # Returns: 'ns:TransactionArrayType'
344              
345             =cut
346            
347             sub getTransactionArray {
348             my $self = shift;
349             return $self->getResponseDataType()->getTransactionArray();
350             }
351              
352             =head2 getTransactionsPerPage()
353              
354             Number of transactions returned per page (per call). May be a higher value
355             than ReturnedTransactionCountActual if the page returned is the last page
356             and more than one page of data exists.
357              
358             Returned: Always
359             Details: DetailLevel: none, ReturnAll, ItemReturnDescription
360             # Returns: 'xs:int'
361              
362             =cut
363            
364             sub getTransactionsPerPage {
365             my $self = shift;
366             return $self->getResponseDataType()->getTransactionsPerPage();
367             }
368              
369              
370              
371              
372              
373             1;