File Coverage

lib/eBay/API/XML/DataType/SellingSummaryType.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::SellingSummaryType;
4              
5 1     1   1136 use strict;
  1         2  
  1         66  
6 1     1   5 use warnings;
  1         3  
  1         35  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SellingSummaryType.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::SellingSummaryType
21              
22             =head1 DESCRIPTION
23              
24             Contains summary information about the items the seller is selling.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::SellingSummaryType inherits from the L class
36              
37             =cut
38              
39 1     1   51 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::AmountType;
43              
44              
45             my @gaProperties = ( [ 'ActiveAuctionCount', 'xs:int', '', '', '' ]
46             , [ 'AuctionBidCount', 'xs:int', '', '', '' ]
47             , [ 'AuctionSellingCount', 'xs:int', '', '', '' ]
48             , [ 'SoldDurationInDays', 'xs:int', '', '', '' ]
49             , [ 'TotalAuctionSellingValue', 'ns:AmountType', ''
50             ,'eBay::API::XML::DataType::AmountType', '1' ]
51             , [ 'TotalSoldCount', 'xs:int', '', '', '' ]
52             , [ 'TotalSoldValue', 'ns:AmountType', ''
53             ,'eBay::API::XML::DataType::AmountType', '1' ]
54             );
55             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
56              
57             my @gaAttributes = (
58             );
59             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
60              
61             =head1 Subroutines:
62              
63             =cut
64              
65             sub new {
66             my $classname = shift;
67             my %args = @_;
68             my $self = $classname->SUPER::new(%args);
69             return $self;
70             }
71              
72             sub isScalar {
73             return 0;
74             }
75              
76              
77              
78             =head2 setActiveAuctionCount()
79              
80             The number of currently active auctions that will sell. That
81             is, there is at least one bidder, and any reserve price has
82             been met. Equivalent to the "Will Sell" value in My eBay.
83              
84             # Argument: 'xs:int'
85              
86             =cut
87              
88             sub setActiveAuctionCount {
89             my $self = shift;
90             $self->{'ActiveAuctionCount'} = shift
91             }
92              
93             =head2 getActiveAuctionCount()
94              
95             Calls: GetMyeBaySelling
96             Returned: Always
97             Details: DetailLevel: none, ReturnSummary, ReturnAll
98              
99             # Returns: 'xs:int'
100              
101             =cut
102              
103             sub getActiveAuctionCount {
104             my $self = shift;
105             return $self->{'ActiveAuctionCount'};
106             }
107              
108              
109             =head2 setAuctionBidCount()
110              
111             The total number of bids made on the seller's active listings.
112              
113             # Argument: 'xs:int'
114              
115             =cut
116              
117             sub setAuctionBidCount {
118             my $self = shift;
119             $self->{'AuctionBidCount'} = shift
120             }
121              
122             =head2 getAuctionBidCount()
123              
124             Calls: GetMyeBaySelling
125             Returned: Always
126             Details: DetailLevel: none, ReturnSummary, ReturnAll
127              
128             # Returns: 'xs:int'
129              
130             =cut
131              
132             sub getAuctionBidCount {
133             my $self = shift;
134             return $self->{'AuctionBidCount'};
135             }
136              
137              
138             =head2 setAuctionSellingCount()
139              
140             The total number of currently active auctions for a given
141             seller. Note that this does not include listings that are
142             FixedPriceItem or StoresFixedPrice. Equivalent to the
143             "Auction Quantity" value in My eBay.
144              
145             # Argument: 'xs:int'
146              
147             =cut
148              
149             sub setAuctionSellingCount {
150             my $self = shift;
151             $self->{'AuctionSellingCount'} = shift
152             }
153              
154             =head2 getAuctionSellingCount()
155              
156             Calls: GetMyeBaySelling
157             Returned: Always
158             Details: DetailLevel: none, ReturnSummary, ReturnAll
159              
160             # Returns: 'xs:int'
161              
162             =cut
163              
164             sub getAuctionSellingCount {
165             my $self = shift;
166             return $self->{'AuctionSellingCount'};
167             }
168              
169              
170             =head2 setSoldDurationInDays()
171              
172             The average duration, in days, of all items sold.
173              
174             # Argument: 'xs:int'
175              
176             =cut
177              
178             sub setSoldDurationInDays {
179             my $self = shift;
180             $self->{'SoldDurationInDays'} = shift
181             }
182              
183             =head2 getSoldDurationInDays()
184              
185             Calls: GetMyeBaySelling
186             Returned: Always
187             Details: DetailLevel: none, ReturnSummary, ReturnAll
188              
189             # Returns: 'xs:int'
190              
191             =cut
192              
193             sub getSoldDurationInDays {
194             my $self = shift;
195             return $self->{'SoldDurationInDays'};
196             }
197              
198              
199             =head2 setTotalAuctionSellingValue()
200              
201             The total value of all items the seller has for sale in all listings.
202              
203             # Argument: 'ns:AmountType'
204              
205             =cut
206              
207             sub setTotalAuctionSellingValue {
208             my $self = shift;
209             $self->{'TotalAuctionSellingValue'} = shift
210             }
211              
212             =head2 getTotalAuctionSellingValue()
213              
214             Calls: GetMyeBaySelling
215             Returned: Always
216             Details: DetailLevel: none, ReturnSummary, ReturnAll
217              
218             # Returns: 'ns:AmountType'
219              
220             =cut
221              
222             sub getTotalAuctionSellingValue {
223             my $self = shift;
224             return $self->_getDataTypeInstance( 'TotalAuctionSellingValue'
225             ,'eBay::API::XML::DataType::AmountType');
226             }
227              
228              
229             =head2 setTotalSoldCount()
230              
231             The total number of items the seller has sold.
232              
233             SeeLink: URL: https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=1111
234             Title: Discrepancies Between Results of GetMyeBaySelling and GetSellerTransactions
235              
236             # Argument: 'xs:int'
237              
238             =cut
239              
240             sub setTotalSoldCount {
241             my $self = shift;
242             $self->{'TotalSoldCount'} = shift
243             }
244              
245             =head2 getTotalSoldCount()
246              
247             Calls: GetMyeBaySelling
248             Returned: Always
249             Details: DetailLevel: none, ReturnSummary, ReturnAll
250              
251             # Returns: 'xs:int'
252              
253             =cut
254              
255             sub getTotalSoldCount {
256             my $self = shift;
257             return $self->{'TotalSoldCount'};
258             }
259              
260              
261             =head2 setTotalSoldValue()
262              
263             The total monetary value of the items the seller has sold.
264              
265             SeeLink: URL: https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=1111
266             Title: Discrepancies Between Results of GetMyeBaySelling and GetSellerTransactions
267              
268             # Argument: 'ns:AmountType'
269              
270             =cut
271              
272             sub setTotalSoldValue {
273             my $self = shift;
274             $self->{'TotalSoldValue'} = shift
275             }
276              
277             =head2 getTotalSoldValue()
278              
279             Calls: GetMyeBaySelling
280             Returned: Always
281             Details: DetailLevel: none, ReturnSummary, ReturnAll
282              
283             # Returns: 'ns:AmountType'
284              
285             =cut
286              
287             sub getTotalSoldValue {
288             my $self = shift;
289             return $self->_getDataTypeInstance( 'TotalSoldValue'
290             ,'eBay::API::XML::DataType::AmountType');
291             }
292              
293              
294              
295              
296              
297             ## Attribute and Property lists
298             sub getPropertiesList {
299             my $self = shift;
300             return \@gaProperties;
301             }
302              
303             sub getAttributesList {
304             my $self = shift;
305             return \@gaAttributes;
306             }
307              
308              
309              
310             1;