File Coverage

lib/eBay/API/XML/Call/GetUserPreferences/GetUserPreferencesRequestType.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::GetUserPreferences::GetUserPreferencesRequestType;
4              
5 1     1   1486 use strict;
  1         3  
  1         29  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetUserPreferencesRequestType.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::GetUserPreferences::GetUserPreferencesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves some or all of a user's preferences. The set of preferences retrieved depends
25             on the set of flags specified in the request.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::Call::GetUserPreferences::GetUserPreferencesRequestType inherits from the L class
37              
38             =cut
39              
40 1     1   34 use eBay::API::XML::RequestDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::RequestDataType");
42              
43              
44              
45             my @gaProperties = ( [ 'ShowBidderNoticePreferences', 'xs:boolean', '', '', '' ]
46             , [ 'ShowCombinedPaymentPreferences', 'xs:boolean', '', '', '' ]
47             , [ 'ShowCrossPromotionPreferences', 'xs:boolean', '', '', '' ]
48             , [ 'ShowEmailShipmentTrackingNumberPreference', 'xs:boolean', '', '', '' ]
49             , [ 'ShowEndOfAuctionEmailPreferences', 'xs:boolean', '', '', '' ]
50             , [ 'ShowProStoresPreferences', 'xs:boolean', '', '', '' ]
51             , [ 'ShowSellerFavoriteItemPreferences', 'xs:boolean', '', '', '' ]
52             , [ 'ShowSellerPaymentPreferences', 'xs:boolean', '', '', '' ]
53             );
54             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
55              
56             my @gaAttributes = (
57             );
58             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
59              
60             =head1 Subroutines:
61              
62             =cut
63              
64             sub new {
65             my $classname = shift;
66             my %args = @_;
67             my $self = $classname->SUPER::new(%args);
68             return $self;
69             }
70              
71             sub isScalar {
72             return 0;
73             }
74              
75              
76              
77             =head2 setShowBidderNoticePreferences()
78              
79             If true, requests a seller's preferences for receiving bidder notices.
80              
81             RequiredInput: No
82             # Argument: 'xs:boolean'
83              
84             =cut
85              
86             sub setShowBidderNoticePreferences {
87             my $self = shift;
88             $self->{'ShowBidderNoticePreferences'} = shift
89             }
90              
91             =head2 isShowBidderNoticePreferences()
92              
93             # Returns: 'xs:boolean'
94              
95             =cut
96              
97             sub isShowBidderNoticePreferences {
98             my $self = shift;
99             return $self->{'ShowBidderNoticePreferences'};
100             }
101              
102              
103             =head2 setShowCombinedPaymentPreferences()
104              
105             DO NOT USE THIS FIELD. Use 'GetShippingDiscountProfiles' to access
106             similar information.
107             If true, requests a seller's preferences for accepting payments
108             that combine item purchases into one order.
109              
110             RequiredInput: No
111             # Argument: 'xs:boolean'
112              
113             =cut
114              
115             sub setShowCombinedPaymentPreferences {
116             my $self = shift;
117             $self->{'ShowCombinedPaymentPreferences'} = shift
118             }
119              
120             =head2 isShowCombinedPaymentPreferences()
121              
122             # Returns: 'xs:boolean'
123              
124             =cut
125              
126             sub isShowCombinedPaymentPreferences {
127             my $self = shift;
128             return $self->{'ShowCombinedPaymentPreferences'};
129             }
130              
131              
132             =head2 setShowCrossPromotionPreferences()
133              
134             If true, requests a seller's cross-promotion preferences, such as
135             whether cross-promotions are enabled and the sort filters used.
136              
137             RequiredInput: No
138             # Argument: 'xs:boolean'
139              
140             =cut
141              
142             sub setShowCrossPromotionPreferences {
143             my $self = shift;
144             $self->{'ShowCrossPromotionPreferences'} = shift
145             }
146              
147             =head2 isShowCrossPromotionPreferences()
148              
149             # Returns: 'xs:boolean'
150              
151             =cut
152              
153             sub isShowCrossPromotionPreferences {
154             my $self = shift;
155             return $self->{'ShowCrossPromotionPreferences'};
156             }
157              
158              
159             =head2 setShowEmailShipmentTrackingNumberPreference()
160              
161             If true, returns the preference related to emailing the email shipment tracking number.
162              
163             Default: false
164              
165             RequiredInput: No
166             # Argument: 'xs:boolean'
167              
168             =cut
169              
170             sub setShowEmailShipmentTrackingNumberPreference {
171             my $self = shift;
172             $self->{'ShowEmailShipmentTrackingNumberPreference'} = shift
173             }
174              
175             =head2 isShowEmailShipmentTrackingNumberPreference()
176              
177             # Returns: 'xs:boolean'
178              
179             =cut
180              
181             sub isShowEmailShipmentTrackingNumberPreference {
182             my $self = shift;
183             return $self->{'ShowEmailShipmentTrackingNumberPreference'};
184             }
185              
186              
187             =head2 setShowEndOfAuctionEmailPreferences()
188              
189             If true, displays the seller's end of auction email preferences.
190              
191             RequiredInput: No
192             # Argument: 'xs:boolean'
193              
194             =cut
195              
196             sub setShowEndOfAuctionEmailPreferences {
197             my $self = shift;
198             $self->{'ShowEndOfAuctionEmailPreferences'} = shift
199             }
200              
201             =head2 isShowEndOfAuctionEmailPreferences()
202              
203             # Returns: 'xs:boolean'
204              
205             =cut
206              
207             sub isShowEndOfAuctionEmailPreferences {
208             my $self = shift;
209             return $self->{'ShowEndOfAuctionEmailPreferences'};
210             }
211              
212              
213             =head2 setShowProStoresPreferences()
214              
215             If true, returns ProStores checkout preferences.
216              
217             Default: false
218              
219             RequiredInput: No
220             # Argument: 'xs:boolean'
221              
222             =cut
223              
224             sub setShowProStoresPreferences {
225             my $self = shift;
226             $self->{'ShowProStoresPreferences'} = shift
227             }
228              
229             =head2 isShowProStoresPreferences()
230              
231             # Returns: 'xs:boolean'
232              
233             =cut
234              
235             sub isShowProStoresPreferences {
236             my $self = shift;
237             return $self->{'ShowProStoresPreferences'};
238             }
239              
240              
241             =head2 setShowSellerFavoriteItemPreferences()
242              
243             If true, retrieves preferences the seller has set for displaying items
244             on a buyer's favorite sellers page and in the favorite sellers email digest.
245              
246             RequiredInput: No
247             # Argument: 'xs:boolean'
248              
249             =cut
250              
251             sub setShowSellerFavoriteItemPreferences {
252             my $self = shift;
253             $self->{'ShowSellerFavoriteItemPreferences'} = shift
254             }
255              
256             =head2 isShowSellerFavoriteItemPreferences()
257              
258             # Returns: 'xs:boolean'
259              
260             =cut
261              
262             sub isShowSellerFavoriteItemPreferences {
263             my $self = shift;
264             return $self->{'ShowSellerFavoriteItemPreferences'};
265             }
266              
267              
268             =head2 setShowSellerPaymentPreferences()
269              
270             If true, displays a seller's payment preferences, for displaying
271             a Pay Now button, accepting PayPal, and so on.
272              
273             RequiredInput: No
274             # Argument: 'xs:boolean'
275              
276             =cut
277              
278             sub setShowSellerPaymentPreferences {
279             my $self = shift;
280             $self->{'ShowSellerPaymentPreferences'} = shift
281             }
282              
283             =head2 isShowSellerPaymentPreferences()
284              
285             # Returns: 'xs:boolean'
286              
287             =cut
288              
289             sub isShowSellerPaymentPreferences {
290             my $self = shift;
291             return $self->{'ShowSellerPaymentPreferences'};
292             }
293              
294              
295              
296              
297              
298             ## Attribute and Property lists
299             sub getPropertiesList {
300             my $self = shift;
301             return \@gaProperties;
302             }
303              
304             sub getAttributesList {
305             my $self = shift;
306             return \@gaAttributes;
307             }
308              
309              
310              
311             1;