File Coverage

lib/eBay/API/XML/DataType/PaginationType.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::DataType::PaginationType;
4              
5 1     1   1241 use strict;
  1         2  
  1         31  
6 1     1   6 use warnings;
  1         1  
  1         33  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PaginationType.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::DataType::PaginationType
21              
22             =head1 DESCRIPTION
23              
24             Contains data for controlling pagination in API requests.
25             Pagination of returned data is required for some calls and not
26             needed in or not supported for some calls. See the documentation
27             for individual calls to determine whether pagination is supported,
28             required, or desirable.
29              
30              
31              
32             =head1 SYNOPSIS
33              
34             =cut
35              
36              
37             =head1 INHERITANCE
38              
39             eBay::API::XML::DataType::PaginationType inherits from the L class
40              
41             =cut
42              
43 1     1   41 use eBay::API::XML::BaseDataType;
  0            
  0            
44             our @ISA = ("eBay::API::XML::BaseDataType");
45              
46              
47              
48             my @gaProperties = ( [ 'EntriesPerPage', 'xs:int', '', '', '' ]
49             , [ 'PageNumber', 'xs:int', '', '', '' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setEntriesPerPage()
75              
76             Specifies the maximum number of entries to return in a single call.
77             If the number of entries that can be returned is less
78             than the value in EntriesPerPage, then the lower number
79             is returned.
80             For most calls, the max is 200 and the default is 25.
81             For GetUserDisputes, the value is hard-coded at 200, and any input is
82             ignored. For GetProducts, the maximum is 20 (and higher values are
83             ignored). See the annotations for other individual calls to determine
84             the correct max and default values. For GetOrders, not applicable to eBay.com (but applicable to Half.com for GetOrders).
85              
86             Calls: GetAccount
87             GetCategoryListings
88             GetFeedback
89             GetItemsAwaitingFeedback
90             GetItemTransactions
91             GetLiveAuctionBidders
92             GetMyeBayBuying
93             GetMyeBaySelling
94             GetOrders
95             GetSellerTransactions
96             GetWantItNowSearchResults
97             GetLiveAuctionBidders
98             GetVeROReportStatus
99             RequiredInput: No
100              
101             Calls: GetMemberMessages
102             RequiredInput: Yes
103              
104             Calls: GetProductSearchResults
105             GetProductFamilyMembers
106             RequiredInput: No
107             Default: 50
108             Max: 50000
109             Min: 1
110              
111             Calls: GetProducts
112             RequiredInput: No
113             Max: 20
114             Min: 1
115              
116             Calls: GetSearchResults
117             RequiredInput: No
118             Max: 400
119             Min: 1
120              
121             Calls: GetSellerPayments
122             RequiredInput: No
123             Default: 200
124             Max: 200
125             Min: 1
126              
127             Calls: GetUserDisputes
128             RequiredInput: No
129             Default: 200
130             Max: 200
131             Min: 200
132              
133             Calls: GetSellerList
134             RequiredInput: Yes
135              
136             Calls: GetPopularKeywords
137             RequiredInput: No
138             Default: 100
139              
140             # Argument: 'xs:int'
141              
142             =cut
143              
144             sub setEntriesPerPage {
145             my $self = shift;
146             $self->{'EntriesPerPage'} = shift
147             }
148              
149             =head2 getEntriesPerPage()
150              
151             # Returns: 'xs:int'
152              
153             =cut
154              
155             sub getEntriesPerPage {
156             my $self = shift;
157             return $self->{'EntriesPerPage'};
158             }
159              
160              
161             =head2 setPageNumber()
162              
163             Specifies the number of the page of data to return in the current call.
164             Default is 1 for most calls. For some calls, the default is 0. Specify a
165             positive value equal to or lower than the number of pages available (which you
166             determine by examining the results of your initial request).
167             See the documentation for other individual calls to determine the correct
168             default value. For GetOrders, not applicable to eBay.com (for GetOrders,
169             applicable to Half.com).
170              
171             Calls: GetAccount
172             GetCategoryListings
173             GetFeedback
174             GetItemsAwaitingFeedback
175             GetItemTransactions
176             GetLiveAuctionBidders
177             GetMyeBayBuying
178             GetMyeBaySelling
179             GetOrders
180             GetSearchResults
181             GetSellerTransactions
182             GetWantItNowSearchResults
183             GetLiveAuctionBidders
184             GetVeROReportStatus
185             RequiredInput: No
186             Default: 0
187             Max: 2147483647
188             Min: 0
189              
190             Calls: GetMemberMessages
191             GetUserDisputes
192             RequiredInput: Yes
193              
194             Calls: GetProductSearchResults
195             GetProductFamilyMembers
196             RequiredInput: No
197             Default: 0
198             Max: 2147483647
199             Min: 0
200              
201             Calls: GetSellerList
202             RequiredInput: Yes
203              
204             Calls: GetSellerPayments
205             RequiredInput: No
206             Default: 1
207             Max: 2147483647
208             Min: 1
209              
210             Calls: GetProducts
211             RequiredInput: No
212             Default: 1
213             Max: 2000
214             Min: 1
215              
216             Calls: GetPopularKeywords
217             RequiredInput: No
218             Default: 1
219              
220             # Argument: 'xs:int'
221              
222             =cut
223              
224             sub setPageNumber {
225             my $self = shift;
226             $self->{'PageNumber'} = shift
227             }
228              
229             =head2 getPageNumber()
230              
231             # Returns: 'xs:int'
232              
233             =cut
234              
235             sub getPageNumber {
236             my $self = shift;
237             return $self->{'PageNumber'};
238             }
239              
240              
241              
242              
243              
244             ## Attribute and Property lists
245             sub getPropertiesList {
246             my $self = shift;
247             return \@gaProperties;
248             }
249              
250             sub getAttributesList {
251             my $self = shift;
252             return \@gaAttributes;
253             }
254              
255              
256              
257             1;