File Coverage

lib/eBay/API/XML/DataType/EndOfAuctionEmailPreferencesType.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::EndOfAuctionEmailPreferencesType;
4              
5 1     1   1265 use strict;
  1         3  
  1         35  
6 1     1   6 use warnings;
  1         2  
  1         35  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. EndOfAuctionEmailPreferencesType.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::EndOfAuctionEmailPreferencesType
21              
22             =head1 DESCRIPTION
23              
24             Contains the seller's preferences for the end of auction (EOA) email to the buyer.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::EndOfAuctionEmailPreferencesType inherits from the L class
36              
37             =cut
38              
39 1     1   47 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::Enum::EndOfAuctionLogoTypeCodeType;
43              
44              
45             my @gaProperties = ( [ 'CopyEmail', 'xs:boolean', '', '', '' ]
46             , [ 'EmailCustomized', 'xs:boolean', '', '', '' ]
47             , [ 'LogoCustomized', 'xs:boolean', '', '', '' ]
48             , [ 'LogoType', 'ns:EndOfAuctionLogoTypeCodeType', ''
49             ,'eBay::API::XML::DataType::Enum::EndOfAuctionLogoTypeCodeType', '' ]
50             , [ 'LogoURL', 'xs:anyURI', '', '', '' ]
51             , [ 'TemplateText', 'xs:string', '', '', '' ]
52             , [ 'TextCustomized', 'xs:boolean', '', '', '' ]
53             );
54             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
55              
56             my @gaAttributes = (
57             );
58             push @gaAttributes, @{eBay::API::XML::BaseDataType::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 setCopyEmail()
78              
79             Indicates whether or not the seller wishes to receive a copy of the customized
80             email sent to the winning buyer.
81              
82             Calls: SetUserPreferences
83             RequiredInput: No
84              
85             # Argument: 'xs:boolean'
86              
87             =cut
88              
89             sub setCopyEmail {
90             my $self = shift;
91             $self->{'CopyEmail'} = shift
92             }
93              
94             =head2 isCopyEmail()
95              
96             Calls: GetUserPreferences
97             Returned: Conditionally
98              
99             # Returns: 'xs:boolean'
100              
101             =cut
102              
103             sub isCopyEmail {
104             my $self = shift;
105             return $self->{'CopyEmail'};
106             }
107              
108              
109             =head2 setEmailCustomized()
110              
111             Indicates whether or not the seller wishes to send a customized email to winning buyers.
112              
113             Calls: SetUserPreferences
114             RequiredInput: No
115              
116             # Argument: 'xs:boolean'
117              
118             =cut
119              
120             sub setEmailCustomized {
121             my $self = shift;
122             $self->{'EmailCustomized'} = shift
123             }
124              
125             =head2 isEmailCustomized()
126              
127             Calls: GetUserPreferences
128             Returned: Conditionally
129              
130             # Returns: 'xs:boolean'
131              
132             =cut
133              
134             sub isEmailCustomized {
135             my $self = shift;
136             return $self->{'EmailCustomized'};
137             }
138              
139              
140             =head2 setLogoCustomized()
141              
142             Indicates whether or not the seller wishes to include a logo in the customized email.
143              
144             Calls: SetUserPreferences
145             RequiredInput: No
146              
147             # Argument: 'xs:boolean'
148              
149             =cut
150              
151             sub setLogoCustomized {
152             my $self = shift;
153             $self->{'LogoCustomized'} = shift
154             }
155              
156             =head2 isLogoCustomized()
157              
158             Calls: GetUserPreferences
159             Returned: Conditionally
160              
161             # Returns: 'xs:boolean'
162              
163             =cut
164              
165             sub isLogoCustomized {
166             my $self = shift;
167             return $self->{'LogoCustomized'};
168             }
169              
170              
171             =head2 setLogoType()
172              
173             The type of logo to include in the customized email.
174              
175             Calls: SetUserPreferences
176             RequiredInput: No
177             AllValuesExcept: None
178              
179             # Argument: 'ns:EndOfAuctionLogoTypeCodeType'
180              
181             =cut
182              
183             sub setLogoType {
184             my $self = shift;
185             $self->{'LogoType'} = shift
186             }
187              
188             =head2 getLogoType()
189              
190             Calls: GetUserPreferences
191             Returned: Conditionally
192              
193             # Returns: 'ns:EndOfAuctionLogoTypeCodeType'
194              
195             =cut
196              
197             sub getLogoType {
198             my $self = shift;
199             return $self->{'LogoType'};
200             }
201              
202              
203             =head2 setLogoURL()
204              
205             The URL of the logo to include in the customized email.
206              
207             Calls: SetUserPreferences
208             RequiredInput: No
209              
210             # Argument: 'xs:anyURI'
211              
212             =cut
213              
214             sub setLogoURL {
215             my $self = shift;
216             $self->{'LogoURL'} = shift
217             }
218              
219             =head2 getLogoURL()
220              
221             Calls: GetUserPreferences
222             Returned: Conditionally
223              
224             # Returns: 'xs:anyURI'
225              
226             =cut
227              
228             sub getLogoURL {
229             my $self = shift;
230             return $self->{'LogoURL'};
231             }
232              
233              
234             =head2 setTemplateText()
235              
236             The text of the custom message for the end of auction (for auctions) or end of
237             transaction (for Buy It Now) emails.
238              
239             Calls: SetUserPreferences
240             RequiredInput: No
241              
242             # Argument: 'xs:string'
243              
244             =cut
245              
246             sub setTemplateText {
247             my $self = shift;
248             $self->{'TemplateText'} = shift
249             }
250              
251             =head2 getTemplateText()
252              
253             Calls: GetUserPreferences
254             Returned: Conditionally
255              
256             # Returns: 'xs:string'
257              
258             =cut
259              
260             sub getTemplateText {
261             my $self = shift;
262             return $self->{'TemplateText'};
263             }
264              
265              
266             =head2 setTextCustomized()
267              
268             Indicates whether or not the text of the customized message will be customized.
269              
270             Calls: SetUserPreferences
271             RequiredInput: No
272              
273             # Argument: 'xs:boolean'
274              
275             =cut
276              
277             sub setTextCustomized {
278             my $self = shift;
279             $self->{'TextCustomized'} = shift
280             }
281              
282             =head2 isTextCustomized()
283              
284             Calls: GetUserPreferences
285             Returned: Conditionally
286              
287             # Returns: 'xs:boolean'
288              
289             =cut
290              
291             sub isTextCustomized {
292             my $self = shift;
293             return $self->{'TextCustomized'};
294             }
295              
296              
297              
298              
299              
300             ## Attribute and Property lists
301             sub getPropertiesList {
302             my $self = shift;
303             return \@gaProperties;
304             }
305              
306             sub getAttributesList {
307             my $self = shift;
308             return \@gaAttributes;
309             }
310              
311              
312              
313             1;