File Coverage

lib/eBay/API/XML/DataType/CharacteristicsSetType.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::CharacteristicsSetType;
4              
5 1     1   1395 use strict;
  1         2  
  1         36  
6 1     1   7 use warnings;
  1         2  
  1         58  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CharacteristicsSetType.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::CharacteristicsSetType
21              
22             =head1 DESCRIPTION
23              
24             A level in the eBay category hierarchy at which a particular group of
25             items can share a common set of attributes. A set of characteristics
26             that can be used to describe similar kinds of items in a standardized way.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::CharacteristicsSetType inherits from the L class
38              
39             =cut
40              
41 1     1   44 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::CharacteristicType;
45              
46              
47             my @gaProperties = ( [ 'AttributeSetID', 'xs:int', '', '', '' ]
48             , [ 'AttributeSetVersion', 'xs:string', '', '', '' ]
49             , [ 'Characteristics', 'ns:CharacteristicType', '1'
50             ,'eBay::API::XML::DataType::CharacteristicType', '1' ]
51             , [ 'Name', 'xs:string', '', '', '' ]
52             );
53             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
54              
55             my @gaAttributes = (
56             );
57             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
58              
59             =head1 Subroutines:
60              
61             =cut
62              
63             sub new {
64             my $classname = shift;
65             my %args = @_;
66             my $self = $classname->SUPER::new(%args);
67             return $self;
68             }
69              
70             sub isScalar {
71             return 0;
72             }
73              
74              
75              
76             =head2 setAttributeSetID()
77              
78             Numeric value that identifies the characteristic set in a language-independent
79             way. Identifies the characteristic set that is mapped to a catalog-enabled
80             category associated with the product. Unique across all eBay sites.
81              
82             Calls: GetProductSellingPages
83             RequiredInput: Yes
84              
85             # Argument: 'xs:int'
86              
87             =cut
88              
89             sub setAttributeSetID {
90             my $self = shift;
91             $self->{'AttributeSetID'} = shift
92             }
93              
94             =head2 getAttributeSetID()
95              
96             Calls: GetCategory2CS
97             Returned: Conditionally
98             Details: DetailLevel: ReturnAll
99             Context: MappedCategoryArray
100             SiteWideCharacteristicSets
101              
102             Calls: GetProductFamilyMembers
103             GetProductSearchPage
104             GetProductSearchResults
105             Returned: Always
106             Details: DetailLevel: ReturnAll
107              
108             # Returns: 'xs:int'
109              
110             =cut
111              
112             sub getAttributeSetID {
113             my $self = shift;
114             return $self->{'AttributeSetID'};
115             }
116              
117              
118             =head2 setAttributeSetVersion()
119              
120             Version of the characteristics set. Not to be confused with
121             AttributeSystemVersion, which can be used to retrieve changes to attribute
122             meta-data. In item-listing requests, if you specify the version of the
123             attribute set that you have stored locally, eBay will compare it to the
124             current version on the site and return a warning if the versions do not match.
125             If an error occurs due to invalid attribute data, this warning can be useful
126             to help determine if you might be sending outdated data. The current value of
127             version is not necessarily "greater than" the previous value.
128              
129             # Argument: 'xs:string'
130              
131             =cut
132              
133             sub setAttributeSetVersion {
134             my $self = shift;
135             $self->{'AttributeSetVersion'} = shift
136             }
137              
138             =head2 getAttributeSetVersion()
139              
140             Calls: GetCategory2CS
141             Returned: Conditionally
142             Details: DetailLevel: ReturnAll
143             Context: MappedCategoryArray
144             SiteWideCharacteristicSets
145              
146             # Returns: 'xs:string'
147              
148             =cut
149              
150             sub getAttributeSetVersion {
151             my $self = shift;
152             return $self->{'AttributeSetVersion'};
153             }
154              
155              
156             =head2 setCharacteristics()
157              
158             A salient aspect or feature of an item. Used to describe an item in a standard
159             way so that buyers can find it more easily. An individual, standardized
160             characteristic that is common to all items within the specified characteristic
161             set. In the context of GetProductSearchPage, each characteristic identifies a
162             single searchable attribute. A searchable attribute is a product aspect or
163             feature that can be used as a criterion in a search for catalog content. For
164             example, "Title" might be a criterion for searching the book catalog for Pre-
165             filled Item Information related to books. See the eBay Web Services guide for
166             more information.
167              
168             # Argument: reference to an array
169             of 'ns:CharacteristicType'
170              
171             =cut
172              
173             sub setCharacteristics {
174             my $self = shift;
175             $self->{'Characteristics'} =
176             $self->convertArray_To_RefToArrayIfNeeded(@_);
177             }
178              
179             =head2 getCharacteristics()
180              
181             Calls: GetProductFamilyMembers
182             GetProductSearchPage
183             GetProductSearchResults
184             GetProducts
185             Returned: Always
186             Details: DetailLevel: ReturnAll
187              
188             # Returns: reference to an array
189             of 'ns:CharacteristicType'
190              
191             =cut
192              
193             sub getCharacteristics {
194             my $self = shift;
195             return $self->_getDataTypeArray('Characteristics');
196             }
197              
198              
199             =head2 setName()
200              
201             The well-known name of the characteristic set (e.g., "Tickets" or "Books").
202              
203             # Argument: 'xs:string'
204              
205             =cut
206              
207             sub setName {
208             my $self = shift;
209             $self->{'Name'} = shift
210             }
211              
212             =head2 getName()
213              
214             Calls: GetCategory2CS
215             Returned: Conditionally
216             Details: DetailLevel: ReturnAll
217             Context: MappedCategoryArray
218             SiteWideCharacteristicSets
219              
220             # Returns: 'xs:string'
221              
222             =cut
223              
224             sub getName {
225             my $self = shift;
226             return $self->{'Name'};
227             }
228              
229              
230              
231              
232              
233             ## Attribute and Property lists
234             sub getPropertiesList {
235             my $self = shift;
236             return \@gaProperties;
237             }
238              
239             sub getAttributesList {
240             my $self = shift;
241             return \@gaAttributes;
242             }
243              
244              
245              
246             1;