File Coverage

lib/eBay/API/XML/Call/GetExpressWishList.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::GetExpressWishList;
4              
5 1     1   2374 use strict;
  1         3  
  1         33  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetExpressWishList.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 07/07/2008 17:42
14             # API Release Number: ... 571
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::Call::GetExpressWishList
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetExpressWishList inherits from the L class
34              
35             =cut
36              
37 1     1   34 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetExpressWishList::GetExpressWishListRequestType;
41             use eBay::API::XML::Call::GetExpressWishList::GetExpressWishListResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetExpressWishList';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetExpressWishList::GetExpressWishListRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetExpressWishList::GetExpressWishListResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setFirstName()
63              
64             User first name. Can be used in combination with LastName. Will be ignored if either UserID or
65             WishListID is included in the request.
66              
67             RequiredInput: No
68             # Argument: 'xs:string'
69              
70             =cut
71            
72             sub setFirstName {
73             my $self = shift;
74             my $sFirstName = shift;
75             $self->getRequestDataType()->setFirstName($sFirstName);
76             }
77              
78             =head2 setLastName()
79              
80             User last name. Can be used in combination with FirstName. Will be ignored if either UserID or
81             WishListID is included in the request.
82              
83             RequiredInput: No
84             # Argument: 'xs:string'
85              
86             =cut
87            
88             sub setLastName {
89             my $self = shift;
90             my $sLastName = shift;
91             $self->getRequestDataType()->setLastName($sLastName);
92             }
93              
94             =head2 setPagination()
95              
96             Contains the data that control the pagination of items or products in any returned wish list.
97              
98             RequiredInput: No
99             # Argument: 'ns:PaginationType'
100              
101             =cut
102            
103             sub setPagination {
104             my $self = shift;
105             my $pPagination = shift;
106             $self->getRequestDataType()->setPagination($pPagination);
107             }
108              
109             =head2 setSortOrder()
110              
111             Sort order for returned results. Default is CreationDateDescending, which returns the most
112             recently added wish list items first.
113              
114             RequiredInput: No
115             # Argument: 'ns:WishListSortCodeType'
116              
117             =cut
118            
119             sub setSortOrder {
120             my $self = shift;
121             my $sSortOrder = shift;
122             $self->getRequestDataType()->setSortOrder($sSortOrder);
123             }
124              
125             =head2 setUserID()
126              
127             eBay user ID. Can be used as an alternative to WishListID or to the combination FirstName and LastName.
128             If WishListID is used, UserID will be ignored. This value is not returned in the response.
129              
130             RequiredInput: No
131             # Argument: 'xs:string'
132              
133             =cut
134            
135             sub setUserID {
136             my $self = shift;
137             my $sUserID = shift;
138             $self->getRequestDataType()->setUserID($sUserID);
139             }
140              
141             =head2 setWishListID()
142              
143             Identifies an eBay Express wish list. When used in a request, UserID and FirstName and LastName are ignored.
144              
145             RequiredInput: No
146             # Argument: 'xs:string'
147              
148             =cut
149            
150             sub setWishListID {
151             my $self = shift;
152             my $sWishListID = shift;
153             $self->getRequestDataType()->setWishListID($sWishListID);
154             }
155              
156              
157              
158             #
159             # output properties
160             #
161              
162             =head2 getPagination()
163              
164             Child elements control the display pagination of the items and products in retrieved
165             wish lists.
166              
167             Returned: Always
168             # Returns: 'ns:PaginationResultType'
169              
170             =cut
171            
172             sub getPagination {
173             my $self = shift;
174             return $self->getResponseDataType()->getPagination();
175             }
176              
177             =head2 getWishList()
178              
179             Contains the contents and description of the requested wish list.
180              
181             Returned: Always
182             # Returns: reference to an array
183             of 'ns:WishListType'
184              
185             =cut
186            
187             sub getWishList {
188             my $self = shift;
189             return $self->getResponseDataType()->getWishList();
190             }
191              
192              
193              
194              
195              
196             1;