File Coverage

lib/eBay/API/XML/DataType/SearchDetailsType.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::SearchDetailsType;
4              
5 1     1   8277 use strict;
  1         2  
  1         32  
6 1     1   6 use warnings;
  1         2  
  1         27  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SearchDetailsType.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::SearchDetailsType
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::DataType::SearchDetailsType inherits from the L class
34              
35             =cut
36              
37 1     1   36 use eBay::API::XML::BaseDataType;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseDataType");
39              
40              
41              
42             my @gaProperties = ( [ 'BuyItNowEnabled', 'xs:boolean', '', '', '' ]
43             , [ 'Picture', 'xs:boolean', '', '', '' ]
44             , [ 'RecentListing', 'xs:boolean', '', '', '' ]
45             );
46             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
47              
48             my @gaAttributes = (
49             );
50             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
51              
52             =head1 Subroutines:
53              
54             =cut
55              
56             sub new {
57             my $classname = shift;
58             my %args = @_;
59             my $self = $classname->SUPER::new(%args);
60             return $self;
61             }
62              
63             sub isScalar {
64             return 0;
65             }
66              
67              
68              
69             =head2 setBuyItNowEnabled()
70              
71             Indicates whether a listing uses the Buy It Now feature.
72             For GetProducts, only returned for listing types that support
73             Buy It Now (like Chinese auctions.)
74              
75             # Argument: 'xs:boolean'
76              
77             =cut
78              
79             sub setBuyItNowEnabled {
80             my $self = shift;
81             $self->{'BuyItNowEnabled'} = shift
82             }
83              
84             =head2 isBuyItNowEnabled()
85              
86             Calls: GetSearchResults
87             Returned: Conditionally
88             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
89              
90             Calls: GetProducts
91             Returned: Conditionally
92              
93             # Returns: 'xs:boolean'
94              
95             =cut
96              
97             sub isBuyItNowEnabled {
98             my $self = shift;
99             return $self->{'BuyItNowEnabled'};
100             }
101              
102              
103             =head2 setPicture()
104              
105             Indicates whether a listing has an image associated with it.
106              
107             # Argument: 'xs:boolean'
108              
109             =cut
110              
111             sub setPicture {
112             my $self = shift;
113             $self->{'Picture'} = shift
114             }
115              
116             =head2 isPicture()
117              
118             Calls: GetSearchResults
119             Returned: Conditionally
120             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
121              
122             Calls: GetProducts
123             Returned: Conditionally
124              
125             # Returns: 'xs:boolean'
126              
127             =cut
128              
129             sub isPicture {
130             my $self = shift;
131             return $self->{'Picture'};
132             }
133              
134              
135             =head2 setRecentListing()
136              
137             Indicates whether a listing is no more than one day old.
138              
139             # Argument: 'xs:boolean'
140              
141             =cut
142              
143             sub setRecentListing {
144             my $self = shift;
145             $self->{'RecentListing'} = shift
146             }
147              
148             =head2 isRecentListing()
149              
150             Calls: GetSearchResults
151             Returned: Conditionally
152             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
153              
154             Calls: GetProducts
155             Returned: Conditionally
156              
157             # Returns: 'xs:boolean'
158              
159             =cut
160              
161             sub isRecentListing {
162             my $self = shift;
163             return $self->{'RecentListing'};
164             }
165              
166              
167              
168              
169              
170             ## Attribute and Property lists
171             sub getPropertiesList {
172             my $self = shift;
173             return \@gaProperties;
174             }
175              
176             sub getAttributesList {
177             my $self = shift;
178             return \@gaAttributes;
179             }
180              
181              
182              
183             1;