File Coverage

lib/eBay/API/XML/Call/SetUserPreferences/SetUserPreferencesRequestType.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::SetUserPreferences::SetUserPreferencesRequestType;
4              
5 1     1   3158 use strict;
  1         5  
  1         126  
6 1     1   13 use warnings;
  1         4  
  1         70  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetUserPreferencesRequestType.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::SetUserPreferences::SetUserPreferencesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Sets the user's preferences to those specified in the request. As
25             a general rule, once you set a preference, GetUserPreferences
26             and the user's preferences displayed on the eBay Web site should
27             reflect the new setting immediately. However, it could take up to
28             7 days for the change to have any logical or functional effect.
29             For example, if you change your combined payment preferences, it
30             could take up to 7 days for eBay to apply the updated combined
31             payment settings to your listings. Also, once you set a
32             preference, you cannot change its setting again within 7 days.
33              
34              
35              
36             =head1 SYNOPSIS
37              
38             =cut
39              
40              
41             =head1 INHERITANCE
42              
43             eBay::API::XML::Call::SetUserPreferences::SetUserPreferencesRequestType inherits from the L class
44              
45             =cut
46              
47 1     1   306 use eBay::API::XML::RequestDataType;
  0            
  0            
48             our @ISA = ("eBay::API::XML::RequestDataType");
49              
50             use eBay::API::XML::DataType::BidderNoticePreferencesType;
51             use eBay::API::XML::DataType::CombinedPaymentPreferencesType;
52             use eBay::API::XML::DataType::CrossPromotionPreferencesType;
53             use eBay::API::XML::DataType::EndOfAuctionEmailPreferencesType;
54             use eBay::API::XML::DataType::SellerFavoriteItemPreferencesType;
55             use eBay::API::XML::DataType::SellerPaymentPreferencesType;
56              
57              
58             my @gaProperties = ( [ 'BidderNoticePreferences', 'ns:BidderNoticePreferencesType', ''
59             ,'eBay::API::XML::DataType::BidderNoticePreferencesType', '1' ]
60             , [ 'CombinedPaymentPreferences', 'ns:CombinedPaymentPreferencesType', ''
61             ,'eBay::API::XML::DataType::CombinedPaymentPreferencesType', '1' ]
62             , [ 'CrossPromotionPreferences', 'ns:CrossPromotionPreferencesType', ''
63             ,'eBay::API::XML::DataType::CrossPromotionPreferencesType', '1' ]
64             , [ 'EmailShipmentTrackingNumberPreference', 'xs:boolean', '', '', '' ]
65             , [ 'EndOfAuctionEmailPreferences', 'ns:EndOfAuctionEmailPreferencesType', ''
66             ,'eBay::API::XML::DataType::EndOfAuctionEmailPreferencesType', '1' ]
67             , [ 'SellerFavoriteItemPreferences', 'ns:SellerFavoriteItemPreferencesType', ''
68             ,'eBay::API::XML::DataType::SellerFavoriteItemPreferencesType', '1' ]
69             , [ 'SellerPaymentPreferences', 'ns:SellerPaymentPreferencesType', ''
70             ,'eBay::API::XML::DataType::SellerPaymentPreferencesType', '1' ]
71             );
72             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
73              
74             my @gaAttributes = (
75             );
76             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
77              
78             =head1 Subroutines:
79              
80             =cut
81              
82             sub new {
83             my $classname = shift;
84             my %args = @_;
85             my $self = $classname->SUPER::new(%args);
86             return $self;
87             }
88              
89             sub isScalar {
90             return 0;
91             }
92              
93              
94              
95             =head2 setBidderNoticePreferences()
96              
97             The user's bidder notice preferences to be set.
98              
99             RequiredInput: No
100             # Argument: 'ns:BidderNoticePreferencesType'
101              
102             =cut
103              
104             sub setBidderNoticePreferences {
105             my $self = shift;
106             $self->{'BidderNoticePreferences'} = shift
107             }
108              
109             =head2 getBidderNoticePreferences()
110              
111             # Returns: 'ns:BidderNoticePreferencesType'
112              
113             =cut
114              
115             sub getBidderNoticePreferences {
116             my $self = shift;
117             return $self->_getDataTypeInstance( 'BidderNoticePreferences'
118             ,'eBay::API::XML::DataType::BidderNoticePreferencesType');
119             }
120              
121              
122             =head2 setCombinedPaymentPreferences()
123              
124             DO NOT USE THIS FIELD. Use 'GetShippingDiscountProfiles' to access
125             similar information.
126             The user's combined payment preferences to be set.
127             When you change these preferences, it can take up to 7 days for the change
128             to have any logical or functional effect on eBay.
129            
130             For the US and Germany sites, combined payment preferences can also affect whether a
131             seller is eligible to list on Express.
132             A seller needs to allow shoppers to pay by single, combined payments for their purchases.
133             A seller is not eligible for Express if they don't allow combined payments.
134             Once changes to these preferences take effect on eBay (within 7 days), it can take up to 7 more days for
135             existing items to be added to or removed from Express. Thus, it can take up to 14 days (total)
136             for combined payment preference changes to affect whether listings appear on Express.
137             Also see ExpressPreferences.ExpressSellingPreferences.
138              
139             RequiredInput: No
140             # Argument: 'ns:CombinedPaymentPreferencesType'
141              
142             =cut
143              
144             sub setCombinedPaymentPreferences {
145             my $self = shift;
146             $self->{'CombinedPaymentPreferences'} = shift
147             }
148              
149             =head2 getCombinedPaymentPreferences()
150              
151             # Returns: 'ns:CombinedPaymentPreferencesType'
152              
153             =cut
154              
155             sub getCombinedPaymentPreferences {
156             my $self = shift;
157             return $self->_getDataTypeInstance( 'CombinedPaymentPreferences'
158             ,'eBay::API::XML::DataType::CombinedPaymentPreferencesType');
159             }
160              
161              
162             =head2 setCrossPromotionPreferences()
163              
164             The user's cross promotion preferences to be set.
165              
166             RequiredInput: No
167             # Argument: 'ns:CrossPromotionPreferencesType'
168              
169             =cut
170              
171             sub setCrossPromotionPreferences {
172             my $self = shift;
173             $self->{'CrossPromotionPreferences'} = shift
174             }
175              
176             =head2 getCrossPromotionPreferences()
177              
178             # Returns: 'ns:CrossPromotionPreferencesType'
179              
180             =cut
181              
182             sub getCrossPromotionPreferences {
183             my $self = shift;
184             return $self->_getDataTypeInstance( 'CrossPromotionPreferences'
185             ,'eBay::API::XML::DataType::CrossPromotionPreferencesType');
186             }
187              
188              
189             =head2 setEmailShipmentTrackingNumberPreference()
190              
191             Sets the preference for the email shipment tracking number.
192              
193             Default: false
194              
195             RequiredInput: No
196             # Argument: 'xs:boolean'
197              
198             =cut
199              
200             sub setEmailShipmentTrackingNumberPreference {
201             my $self = shift;
202             $self->{'EmailShipmentTrackingNumberPreference'} = shift
203             }
204              
205             =head2 isEmailShipmentTrackingNumberPreference()
206              
207             # Returns: 'xs:boolean'
208              
209             =cut
210              
211             sub isEmailShipmentTrackingNumberPreference {
212             my $self = shift;
213             return $self->{'EmailShipmentTrackingNumberPreference'};
214             }
215              
216              
217             =head2 setEndOfAuctionEmailPreferences()
218              
219             The seller's end of auction email preferences to be set.
220              
221             RequiredInput: No
222             # Argument: 'ns:EndOfAuctionEmailPreferencesType'
223              
224             =cut
225              
226             sub setEndOfAuctionEmailPreferences {
227             my $self = shift;
228             $self->{'EndOfAuctionEmailPreferences'} = shift
229             }
230              
231             =head2 getEndOfAuctionEmailPreferences()
232              
233             # Returns: 'ns:EndOfAuctionEmailPreferencesType'
234              
235             =cut
236              
237             sub getEndOfAuctionEmailPreferences {
238             my $self = shift;
239             return $self->_getDataTypeInstance( 'EndOfAuctionEmailPreferences'
240             ,'eBay::API::XML::DataType::EndOfAuctionEmailPreferencesType');
241             }
242              
243              
244             =head2 setSellerFavoriteItemPreferences()
245              
246             Seller's favorite item preferences to be set.
247              
248             RequiredInput: No
249             # Argument: 'ns:SellerFavoriteItemPreferencesType'
250              
251             =cut
252              
253             sub setSellerFavoriteItemPreferences {
254             my $self = shift;
255             $self->{'SellerFavoriteItemPreferences'} = shift
256             }
257              
258             =head2 getSellerFavoriteItemPreferences()
259              
260             # Returns: 'ns:SellerFavoriteItemPreferencesType'
261              
262             =cut
263              
264             sub getSellerFavoriteItemPreferences {
265             my $self = shift;
266             return $self->_getDataTypeInstance( 'SellerFavoriteItemPreferences'
267             ,'eBay::API::XML::DataType::SellerFavoriteItemPreferencesType');
268             }
269              
270              
271             =head2 setSellerPaymentPreferences()
272              
273             The user's seller payment preferences to be set.
274              
275             RequiredInput: No
276             # Argument: 'ns:SellerPaymentPreferencesType'
277              
278             =cut
279              
280             sub setSellerPaymentPreferences {
281             my $self = shift;
282             $self->{'SellerPaymentPreferences'} = shift
283             }
284              
285             =head2 getSellerPaymentPreferences()
286              
287             # Returns: 'ns:SellerPaymentPreferencesType'
288              
289             =cut
290              
291             sub getSellerPaymentPreferences {
292             my $self = shift;
293             return $self->_getDataTypeInstance( 'SellerPaymentPreferences'
294             ,'eBay::API::XML::DataType::SellerPaymentPreferencesType');
295             }
296              
297              
298              
299              
300              
301             ## Attribute and Property lists
302             sub getPropertiesList {
303             my $self = shift;
304             return \@gaProperties;
305             }
306              
307             sub getAttributesList {
308             my $self = shift;
309             return \@gaAttributes;
310             }
311              
312              
313              
314             1;