File Coverage

lib/eBay/API/XML/DataType/ExpressDetailsType.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::ExpressDetailsType;
4              
5 1     1   1575 use strict;
  1         3  
  1         35  
6 1     1   7 use warnings;
  1         1  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ExpressDetailsType.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::ExpressDetailsType
21              
22             =head1 DESCRIPTION
23              
24             Item details that are only applicable to listings on Express (not the main eBay
25             site).
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::ExpressDetailsType inherits from the L class
37              
38             =cut
39              
40 1     1   48 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43              
44              
45             my @gaProperties = ( [ 'Condition', 'xs:string', '', '', '' ]
46             , [ 'ExpressLargeImage', 'xs:anyURI', '', '', '' ]
47             , [ 'ExpressSmallImage', 'xs:anyURI', '', '', '' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setCondition()
73              
74             The item condition, if any. On Express US, this is often a value like "New",
75             "Used", or "Refurbished", but the exact value can vary based on the Item
76             Condition data that the seller used in the listing.
For example, in
77             some eBay categories, the condition can have a value like "New: With Tags"
78             instead. (At the time of this writing, GetSearchResultsExpress mapped all
79             conditions to "New" and "Used". However, this could change in the future.) By
80             default, only new items (or the equivalent) are returned from
81             GetSearchResultsExpress. Use Condition in the request to include used and
82             refurbished items (or the equivalent) as well. Only returned when ItemDetails
83             is set to Fine.
84            
85             Not applicable to calls that browse or search items on the main eBay site.
86              
87             # Argument: 'xs:string'
88              
89             =cut
90              
91             sub setCondition {
92             my $self = shift;
93             $self->{'Condition'} = shift
94             }
95              
96             =head2 getCondition()
97              
98             # Returns: 'xs:string'
99              
100             =cut
101              
102             sub getCondition {
103             my $self = shift;
104             return $self->{'Condition'};
105             }
106              
107              
108             =head2 setExpressLargeImage()
109              
110             Large gallery image that appears in the "Grid View" in search results on the
111             Express site. The longest dimension is 140 pixels. Only returned when
112             ItemDetails is set to Fine.
113            
114             Express generates the image based on pictures that the seller includes in the
115             listing. For details about Express listing criteria, see the eBay Web Services
116             Guide link below.
117            
118             If the item was listed in an eBay category that does not require
119             pictures for Express (like Tickets), a generic image may be returned instead.
120              
121             # Argument: 'xs:anyURI'
122              
123             =cut
124              
125             sub setExpressLargeImage {
126             my $self = shift;
127             $self->{'ExpressLargeImage'} = shift
128             }
129              
130             =head2 getExpressLargeImage()
131              
132             # Returns: 'xs:anyURI'
133              
134             =cut
135              
136             sub getExpressLargeImage {
137             my $self = shift;
138             return $self->{'ExpressLargeImage'};
139             }
140              
141              
142             =head2 setExpressSmallImage()
143              
144             Small gallery image that appears in the "List View" in search results on the
145             Express site. The longest dimension is 96 pixels. Only returned when ItemDetails
146             is set to Fine.
147            
148             Express generates the image based on pictures that the seller includes in the
149             listing. For details about Express listing criteria, see the eBay Web Services
150             Guide link below.
151            
152             If the item was listed in an eBay category that does not require pictures for
153             Express (like Tickets), a generic image may be returned instead.
154              
155             # Argument: 'xs:anyURI'
156              
157             =cut
158              
159             sub setExpressSmallImage {
160             my $self = shift;
161             $self->{'ExpressSmallImage'} = shift
162             }
163              
164             =head2 getExpressSmallImage()
165              
166             # Returns: 'xs:anyURI'
167              
168             =cut
169              
170             sub getExpressSmallImage {
171             my $self = shift;
172             return $self->{'ExpressSmallImage'};
173             }
174              
175              
176              
177              
178              
179             ## Attribute and Property lists
180             sub getPropertiesList {
181             my $self = shift;
182             return \@gaProperties;
183             }
184              
185             sub getAttributesList {
186             my $self = shift;
187             return \@gaAttributes;
188             }
189              
190              
191              
192             1;