File Coverage

lib/eBay/API/XML/DataType/SellingManagerProductDetailsType.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::SellingManagerProductDetailsType;
4              
5 1     1   1200 use strict;
  1         2  
  1         29  
6 1     1   5 use warnings;
  1         1  
  1         38  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SellingManagerProductDetailsType.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::SellingManagerProductDetailsType
21              
22             =head1 DESCRIPTION
23              
24             Returned if the user is a Selling Manager
25             Pro user.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::SellingManagerProductDetailsType 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::AmountType;
44              
45              
46             my @gaProperties = ( [ 'CustomLabel', 'xs:string', '', '', '' ]
47             , [ 'PartNumber', 'xs:int', '', '', '' ]
48             , [ 'ProductID', 'xs:string', '', '', '' ]
49             , [ 'ProductName', 'xs:string', '', '', '' ]
50             , [ 'ProductPartNumber', 'xs:string', '', '', '' ]
51             , [ 'QuantityAvailable', 'xs:int', '', '', '' ]
52             , [ 'UnitCost', '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 setCustomLabel()
79              
80             Custom label of this product.
81              
82             # Argument: 'xs:string'
83              
84             =cut
85              
86             sub setCustomLabel {
87             my $self = shift;
88             $self->{'CustomLabel'} = shift
89             }
90              
91             =head2 getCustomLabel()
92              
93             # Returns: 'xs:string'
94              
95             =cut
96              
97             sub getCustomLabel {
98             my $self = shift;
99             return $self->{'CustomLabel'};
100             }
101              
102              
103             =head2 setPartNumber()
104              
105             The numeric part number of an item.
106              
107             # Argument: 'xs:int'
108              
109             =cut
110              
111             sub setPartNumber {
112             my $self = shift;
113             $self->{'PartNumber'} = shift
114             }
115              
116             =head2 getPartNumber()
117              
118             Calls: GetItemTransactions
119             GetSellerTransactions
120             Returned: Conditionally
121             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
122              
123             # Returns: 'xs:int'
124              
125             =cut
126              
127             sub getPartNumber {
128             my $self = shift;
129             return $self->{'PartNumber'};
130             }
131              
132              
133             =head2 setProductID()
134              
135             ID of this product.
136              
137             # Argument: 'xs:string'
138              
139             =cut
140              
141             sub setProductID {
142             my $self = shift;
143             $self->{'ProductID'} = shift
144             }
145              
146             =head2 getProductID()
147              
148             # Returns: 'xs:string'
149              
150             =cut
151              
152             sub getProductID {
153             my $self = shift;
154             return $self->{'ProductID'};
155             }
156              
157              
158             =head2 setProductName()
159              
160             The exact product name of an item.
161              
162             # Argument: 'xs:string'
163              
164             =cut
165              
166             sub setProductName {
167             my $self = shift;
168             $self->{'ProductName'} = shift
169             }
170              
171             =head2 getProductName()
172              
173             Calls: GetItemTransactions
174             GetSellerTransactions
175             Returned: Conditionally
176             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
177              
178             Calls: GetOrderTransactions
179             Returned: Conditionally
180             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
181              
182             # Returns: 'xs:string'
183              
184             =cut
185              
186             sub getProductName {
187             my $self = shift;
188             return $self->{'ProductName'};
189             }
190              
191              
192             =head2 setProductPartNumber()
193              
194             The alphanumeric part number of an item.
195              
196             # Argument: 'xs:string'
197              
198             =cut
199              
200             sub setProductPartNumber {
201             my $self = shift;
202             $self->{'ProductPartNumber'} = shift
203             }
204              
205             =head2 getProductPartNumber()
206              
207             Calls: GetItemTransactions
208             GetSellerTransactions
209             Returned: Conditionally
210             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
211              
212             # Returns: 'xs:string'
213              
214             =cut
215              
216             sub getProductPartNumber {
217             my $self = shift;
218             return $self->{'ProductPartNumber'};
219             }
220              
221              
222             =head2 setQuantityAvailable()
223              
224             Quantity of items in the inventory for this product.
225              
226             # Argument: 'xs:int'
227              
228             =cut
229              
230             sub setQuantityAvailable {
231             my $self = shift;
232             $self->{'QuantityAvailable'} = shift
233             }
234              
235             =head2 getQuantityAvailable()
236              
237             # Returns: 'xs:int'
238              
239             =cut
240              
241             sub getQuantityAvailable {
242             my $self = shift;
243             return $self->{'QuantityAvailable'};
244             }
245              
246              
247             =head2 setUnitCost()
248              
249             Cost of each item of this product.
250              
251             # Argument: 'ns:AmountType'
252              
253             =cut
254              
255             sub setUnitCost {
256             my $self = shift;
257             $self->{'UnitCost'} = shift
258             }
259              
260             =head2 getUnitCost()
261              
262             # Returns: 'ns:AmountType'
263              
264             =cut
265              
266             sub getUnitCost {
267             my $self = shift;
268             return $self->_getDataTypeInstance( 'UnitCost'
269             ,'eBay::API::XML::DataType::AmountType');
270             }
271              
272              
273              
274              
275              
276             ## Attribute and Property lists
277             sub getPropertiesList {
278             my $self = shift;
279             return \@gaProperties;
280             }
281              
282             sub getAttributesList {
283             my $self = shift;
284             return \@gaAttributes;
285             }
286              
287              
288              
289             1;