File Coverage

lib/eBay/API/XML/DataType/ExpressHistogramDepartmentType.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::ExpressHistogramDepartmentType;
4              
5 1     1   1863 use strict;
  1         3  
  1         36  
6 1     1   38 use warnings;
  1         3  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ExpressHistogramDepartmentType.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::ExpressHistogramDepartmentType
21              
22             =head1 DESCRIPTION
23              
24             Details about an Express department and matching item and catalog product counts
25             in that department, if any.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::ExpressHistogramDepartmentType inherits from the L class
37              
38             =cut
39              
40 1     1   42 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::ExpressHistogramAisleType;
44             use eBay::API::XML::DataType::ExpressHistogramDomainDetailsType;
45              
46              
47             my @gaProperties = ( [ 'Aisle', 'ns:ExpressHistogramAisleType', '1'
48             ,'eBay::API::XML::DataType::ExpressHistogramAisleType', '1' ]
49             , [ 'DomainDetails', 'ns:ExpressHistogramDomainDetailsType', ''
50             ,'eBay::API::XML::DataType::ExpressHistogramDomainDetailsType', '1' ]
51             );
52             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
53              
54             my @gaAttributes = (
55             );
56             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
57              
58             =head1 Subroutines:
59              
60             =cut
61              
62             sub new {
63             my $classname = shift;
64             my %args = @_;
65             my $self = $classname->SUPER::new(%args);
66             return $self;
67             }
68              
69             sub isScalar {
70             return 0;
71             }
72              
73              
74              
75             =head2 setAisle()
76              
77             Contains item and catalog product counts for an aisle (if any) and may contain a list of product types.
78             Only returned when HistogramDetails is configured to return aisles and/or product types.
79            
80             A Department node can contain multiple Aisle nodes.
81              
82             # Argument: reference to an array
83             of 'ns:ExpressHistogramAisleType'
84              
85             =cut
86              
87             sub setAisle {
88             my $self = shift;
89             $self->{'Aisle'} =
90             $self->convertArray_To_RefToArrayIfNeeded(@_);
91             }
92              
93             =head2 getAisle()
94              
95             # Returns: reference to an array
96             of 'ns:ExpressHistogramAisleType'
97              
98             =cut
99              
100             sub getAisle {
101             my $self = shift;
102             return $self->_getDataTypeArray('Aisle');
103             }
104              
105              
106             =head2 setDomainDetails()
107              
108             Identifies the department and provides matching item and
109             eBay catalog product counts in the specified department.
110             Only returned if a department matched the request.
111            
112             If this node is missing but Department.Aisle.ProductType is present, it means that the product type
113             specified in Department.Aisle.ProductType is not grouped into a department.
114             In the Express Web site UI, stand-alone product types are elevated to (treated as) departments
115             from the user's perspective. However, the API always maintains the Department/Aisle/ProductType
116             structure to help you distinguish between actual departments, aisles, and stand-alone product types.
117              
118             # Argument: 'ns:ExpressHistogramDomainDetailsType'
119              
120             =cut
121              
122             sub setDomainDetails {
123             my $self = shift;
124             $self->{'DomainDetails'} = shift
125             }
126              
127             =head2 getDomainDetails()
128              
129             # Returns: 'ns:ExpressHistogramDomainDetailsType'
130              
131             =cut
132              
133             sub getDomainDetails {
134             my $self = shift;
135             return $self->_getDataTypeInstance( 'DomainDetails'
136             ,'eBay::API::XML::DataType::ExpressHistogramDomainDetailsType');
137             }
138              
139              
140              
141              
142              
143             ## Attribute and Property lists
144             sub getPropertiesList {
145             my $self = shift;
146             return \@gaProperties;
147             }
148              
149             sub getAttributesList {
150             my $self = shift;
151             return \@gaAttributes;
152             }
153              
154              
155              
156             1;