File Coverage

lib/eBay/API/XML/Call/GetOrders.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::GetOrders;
4              
5 1     1   2326 use strict;
  1         3  
  1         24  
6 1     1   5 use warnings;
  1         2  
  1         31  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetOrders.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::GetOrders
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetOrders inherits from the L class
34              
35             =cut
36              
37 1     1   32 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetOrders::GetOrdersRequestType;
41             use eBay::API::XML::Call::GetOrders::GetOrdersResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetOrders';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetOrders::GetOrdersRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetOrders::GetOrdersResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setCreateTimeFrom()
63              
64             The starting date of the date range for the orders to retrieve.
65             Also applicable to Half.com.
66              
67             RequiredInput: Conditionally
68             # Argument: 'xs:dateTime'
69              
70             =cut
71            
72             sub setCreateTimeFrom {
73             my $self = shift;
74             my $sCreateTimeFrom = shift;
75             $self->getRequestDataType()->setCreateTimeFrom($sCreateTimeFrom);
76             }
77              
78             =head2 setCreateTimeTo()
79              
80             The ending date of the date range for the orders to retrieve.
81             Also applicable to Half.com.
82              
83             RequiredInput: Conditionally
84             # Argument: 'xs:dateTime'
85              
86             =cut
87            
88             sub setCreateTimeTo {
89             my $self = shift;
90             my $sCreateTimeTo = shift;
91             $self->getRequestDataType()->setCreateTimeTo($sCreateTimeTo);
92             }
93              
94             =head2 setListingType()
95              
96             To retrieve Half.com orders, specify Half. To retrieve eBay
97             orders, don't specify this field at all.
98             (This field can't be used as a listing type filter on eBay.com.
99             If not provided or if any value other than Half is specified,
100             this field has no useful effect and the call retrieves
101             eBay orders of all types.
102             Also, you can't retrieve both eBay and Half.com orders
103             in the same response.)
104              
105             RequiredInput: Conditionally
106             OnlyTheseValues: Half
107             # Argument: 'ns:ListingTypeCodeType'
108              
109             =cut
110            
111             sub setListingType {
112             my $self = shift;
113             my $sListingType = shift;
114             $self->getRequestDataType()->setListingType($sListingType);
115             }
116              
117             =head2 setOrderIDArray()
118              
119             A set of orders to retrieve.
120             Does not retrieve Express orders, even when the explicit Express OrderID found on the eBay Express site is included in the request.
121             Not applicable to Half.com.
122              
123             RequiredInput: Conditionally
124             # Argument: 'ns:OrderIDArrayType'
125              
126             =cut
127            
128             sub setOrderIDArray {
129             my $self = shift;
130             my $pOrderIDArray = shift;
131             $self->getRequestDataType()->setOrderIDArray($pOrderIDArray);
132             }
133              
134             =head2 setOrderRole()
135              
136             Filters orders based on the role of the user making the
137             GetOrders request.
138             Not applicable to Half.com.
139              
140             RequiredInput: Conditionally
141             # Argument: 'ns:TradingRoleCodeType'
142              
143             =cut
144            
145             sub setOrderRole {
146             my $self = shift;
147             my $sOrderRole = shift;
148             $self->getRequestDataType()->setOrderRole($sOrderRole);
149             }
150              
151             =head2 setOrderStatus()
152              
153             Filters the returned orders by order status (Active or Completed).
154             To retrieve orders with a status of Inactive or Cancelled, you must
155             specify the order IDs (OrderIDArray.OrderID). When you specify
156             OrderIDArray.OrderID, no other filters are used.
157            

158             For Half.com, you can get some, but not all orders.
159             Orders on Half.com have different order status values from
160             eBay orders. When you set ListingType to Half, set OrderStatus
161             to Shipped. Otherwise, GetOrders may return incomplete information
162             or have indeterminate results.
163              
164             RequiredInput: Conditionally
165             OnlyTheseValues: Active, Completed, Shipped
166             # Argument: 'ns:OrderStatusCodeType'
167              
168             =cut
169            
170             sub setOrderStatus {
171             my $self = shift;
172             my $sOrderStatus = shift;
173             $self->getRequestDataType()->setOrderStatus($sOrderStatus);
174             }
175              
176             =head2 setPagination()
177              
178             Not applicable to eBay.com. Applicable to Half.com. If many orders are available,
179             you may need to call GetOrders multiple times to retrieve all the data.
180             Each result set is returned as a page of entries.
181             Use this Pagination information to indicate the maximum number of entries to
182             retrieve per page (i.e., per call), the page number to retrieve, and other data.
183              
184             RequiredInput: No
185             # Argument: 'ns:PaginationType'
186              
187             =cut
188            
189             sub setPagination {
190             my $self = shift;
191             my $pPagination = shift;
192             $self->getRequestDataType()->setPagination($pPagination);
193             }
194              
195              
196              
197             #
198             # output properties
199             #
200              
201             =head2 isHasMoreOrders()
202              
203             Applies only to Half.com. If true, there are more orders yet to be
204             retrieved. Additional GetOrders calls with higher page numbers or more
205             entries per page must be made to retrieve these orders. If false, no more
206             orders are available or no orders match the request (based on the input
207             filters).
208              
209             Returned: Always
210             Details: DetailLevel: none
211             # Returns: 'xs:boolean'
212              
213             =cut
214            
215             sub isHasMoreOrders {
216             my $self = shift;
217             return $self->getResponseDataType()->isHasMoreOrders();
218             }
219              
220             =head2 getOrderArray()
221              
222             The set of orders that match the order IDs or filter criteria specified.
223             Also applicable to Half.com (only returns orders that have not been marked as shipped).
224              
225             Returned: Always
226             Details: DetailLevel: none
227             # Returns: 'ns:OrderArrayType'
228              
229             =cut
230            
231             sub getOrderArray {
232             my $self = shift;
233             return $self->getResponseDataType()->getOrderArray();
234             }
235              
236             =head2 getOrdersPerPage()
237              
238             Applies only to Half.com. Indicates the number of orders that can be
239             returned per page of data (i.e., per call). This is the same as the value
240             specified in the Pagination.EntriesPerPage input (or the default value, if
241             EntriesPerPage was not specified). This is not necessarily the actual
242             number of orders returned per page (see ReturnedOrderCountActual).
243              
244             Returned: Always
245             Details: DetailLevel: none
246             # Returns: 'xs:int'
247              
248             =cut
249            
250             sub getOrdersPerPage {
251             my $self = shift;
252             return $self->getResponseDataType()->getOrdersPerPage();
253             }
254              
255             =head2 getPageNumber()
256              
257             Applies only to Half.com. Indicates which page of data holds the current
258             result set. Will be the same as the value specified in the
259             Pagination.PageNumber input. If orders are returned, the first page is 1.
260              
261             Returned: Always
262             Details: DetailLevel: none
263             # Returns: 'xs:int'
264              
265             =cut
266            
267             sub getPageNumber {
268             my $self = shift;
269             return $self->getResponseDataType()->getPageNumber();
270             }
271              
272             =head2 getPaginationResult()
273              
274             Applies only to Half.com. Contains information regarding the pagination of
275             data (if pagination is used), including total number of pages and total
276             number of entries.
277              
278             Returned: Always
279             Details: DetailLevel: none
280             # Returns: 'ns:PaginationResultType'
281              
282             =cut
283            
284             sub getPaginationResult {
285             my $self = shift;
286             return $self->getResponseDataType()->getPaginationResult();
287             }
288              
289             =head2 getReturnedOrderCountActual()
290              
291             Applies only to Half.com. Indicates the total number of orders returned.
292              
293             Returned: Always
294             Details: DetailLevel: none
295             # Returns: 'xs:int'
296              
297             =cut
298            
299             sub getReturnedOrderCountActual {
300             my $self = shift;
301             return $self->getResponseDataType()->getReturnedOrderCountActual();
302             }
303              
304              
305              
306              
307              
308             1;