File Coverage

lib/eBay/API/XML/DataType/ListingDesignerType.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::ListingDesignerType;
4              
5 1     1   1914 use strict;
  1         3  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ListingDesignerType.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::ListingDesignerType
21              
22             =head1 DESCRIPTION
23              
24             Contains the IDs for the Listing Designer theme and template (if either are
25             used) associated with an item, which can optionally be used to enhance the
26             appearance of the item's description. Cannot be used with Photo Display.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::ListingDesignerType inherits from the L class
38              
39             =cut
40              
41 1     1   41 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44              
45              
46             my @gaProperties = ( [ 'LayoutID', 'xs:int', '', '', '' ]
47             , [ 'OptimalPictureSize', 'xs:boolean', '', '', '' ]
48             , [ 'ThemeID', 'xs:int', '', '', '' ]
49             );
50             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
51              
52             my @gaAttributes = (
53             );
54             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
55              
56             =head1 Subroutines:
57              
58             =cut
59              
60             sub new {
61             my $classname = shift;
62             my %args = @_;
63             my $self = $classname->SUPER::new(%args);
64             return $self;
65             }
66              
67             sub isScalar {
68             return 0;
69             }
70              
71              
72              
73             =head2 setLayoutID()
74              
75             Identifies the Layout template to use when displaying the
76             item's description. Call GetDescriptionTemplates for valid IDs.
77             Set to false in GetDescriptionTemplates (or do not specify
78             LayoutID) to get the standard layout. If a Listing Designer
79             layout is used (except standard layout), PhotoDisplayType must
80             be false (or not be specified).
81             When relisting an item, LayoutID is removed from the listing if you specify
82             ListingDesignerType without LayoutID. Alternatively, to remove this value
83             when revising or relisting an item, use DeletedField.
84              
85             Calls: AddItem
86             GetItemRecommendations
87             RelistItem
88             ReviseItem
89             VerifyAddItem
90             RequiredInput: No
91              
92             # Argument: 'xs:int'
93              
94             =cut
95              
96             sub setLayoutID {
97             my $self = shift;
98             $self->{'LayoutID'} = shift
99             }
100              
101             =head2 getLayoutID()
102              
103             Calls: GetBidderList
104             Returned: Conditionally
105              
106             Calls: GetSellerList
107             Returned: Conditionally
108             Details: DetailLevel: ItemReturnDescription, ReturnAll
109              
110             Calls: GetItem
111             Returned: Always
112             Details: DetailLevel: ItemReturnDescription, ReturnAll
113              
114             # Returns: 'xs:int'
115              
116             =cut
117              
118             sub getLayoutID {
119             my $self = shift;
120             return $self->{'LayoutID'};
121             }
122              
123              
124             =head2 setOptimalPictureSize()
125              
126             If true, indicates that the item's picture will be enlarged to fit description
127             of the item.
128              
129             Calls: AddItem
130             GetItemRecommendations
131             RelistItem
132             ReviseItem
133             VerifyAddItem
134             RequiredInput: No
135              
136             # Argument: 'xs:boolean'
137              
138             =cut
139              
140             sub setOptimalPictureSize {
141             my $self = shift;
142             $self->{'OptimalPictureSize'} = shift
143             }
144              
145             =head2 isOptimalPictureSize()
146              
147             Calls: GetBidderList
148             Returned: Conditionally
149              
150             Calls: GetItem
151             Returned: Conditionally
152             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
153              
154             Calls: GetSellerList
155             Returned: Conditionally
156             Details: DetailLevel: ItemReturnDescription, ReturnAll
157              
158             # Returns: 'xs:boolean'
159              
160             =cut
161              
162             sub isOptimalPictureSize {
163             my $self = shift;
164             return $self->{'OptimalPictureSize'};
165             }
166              
167              
168             =head2 setThemeID()
169              
170             ID for the Listing Designer theme template to use when
171             displaying the item's description.
172             When relisting, if you specify ListingDesignerType without
173             ThemeID, ThemeID is removed from the listing. Alternatively, to remove
174             this value when revising or relisting an item, use DeletedField.
175              
176             Calls: AddItem
177             GetItemRecommendations
178             RelistItem
179             ReviseItem
180             VerifyAddItem
181             RequiredInput: No
182              
183             # Argument: 'xs:int'
184              
185             =cut
186              
187             sub setThemeID {
188             my $self = shift;
189             $self->{'ThemeID'} = shift
190             }
191              
192             =head2 getThemeID()
193              
194             Calls: GetBidderList
195             Returned: Conditionally
196              
197             Calls: GetSellerList
198             Returned: Conditionally
199             Details: DetailLevel: ItemReturnDescription, ReturnAll
200              
201             Calls: GetItem
202             Returned: Always
203             Details: DetailLevel: ItemReturnDescription, ReturnAll
204              
205             # Returns: 'xs:int'
206              
207             =cut
208              
209             sub getThemeID {
210             my $self = shift;
211             return $self->{'ThemeID'};
212             }
213              
214              
215              
216              
217              
218             ## Attribute and Property lists
219             sub getPropertiesList {
220             my $self = shift;
221             return \@gaProperties;
222             }
223              
224             sub getAttributesList {
225             my $self = shift;
226             return \@gaAttributes;
227             }
228              
229              
230              
231             1;