File Coverage

lib/eBay/API/XML/Call/SetStoreCategories/SetStoreCategoriesRequestType.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::Call::SetStoreCategories::SetStoreCategoriesRequestType;
4              
5 1     1   1470 use strict;
  1         2  
  1         27  
6 1     1   4 use warnings;
  1         2  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetStoreCategoriesRequestType.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::Call::SetStoreCategories::SetStoreCategoriesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Requests changes to the category structure for a store. Use this
25             call to add, delete, move, or rename a list of categories.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::Call::SetStoreCategories::SetStoreCategoriesRequestType inherits from the L class
37              
38             =cut
39              
40 1     1   33 use eBay::API::XML::RequestDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::RequestDataType");
42              
43             use eBay::API::XML::DataType::StoreCustomCategoryArrayType;
44             use eBay::API::XML::DataType::Enum::StoreCategoryUpdateActionCodeType;
45              
46              
47             my @gaProperties = ( [ 'Action', 'ns:StoreCategoryUpdateActionCodeType', ''
48             ,'eBay::API::XML::DataType::Enum::StoreCategoryUpdateActionCodeType', '' ]
49             , [ 'DestinationParentCategoryID', 'xs:long', '', '', '' ]
50             , [ 'ItemDestinationCategoryID', 'xs:long', '', '', '' ]
51             , [ 'StoreCategories', 'ns:StoreCustomCategoryArrayType', ''
52             ,'eBay::API::XML::DataType::StoreCustomCategoryArrayType', '1' ]
53             );
54             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
55              
56             my @gaAttributes = (
57             );
58             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
59              
60             =head1 Subroutines:
61              
62             =cut
63              
64             sub new {
65             my $classname = shift;
66             my %args = @_;
67             my $self = $classname->SUPER::new(%args);
68             return $self;
69             }
70              
71             sub isScalar {
72             return 0;
73             }
74              
75              
76              
77             =head2 setAction()
78              
79             Specifies the type of action (Add, Move, Delete, or Rename) to carry out
80             for the specified categories.
81              
82             RequiredInput: Yes
83             # Argument: 'ns:StoreCategoryUpdateActionCodeType'
84              
85             =cut
86              
87             sub setAction {
88             my $self = shift;
89             $self->{'Action'} = shift
90             }
91              
92             =head2 getAction()
93              
94             # Returns: 'ns:StoreCategoryUpdateActionCodeType'
95              
96             =cut
97              
98             sub getAction {
99             my $self = shift;
100             return $self->{'Action'};
101             }
102              
103              
104             =head2 setDestinationParentCategoryID()
105              
106             When adding or moving store categories, specifies the category under
107             which the listed categories will be located. To add or move categories to
108             the top level, set the value to -999.
109              
110             RequiredInput: Conditionally
111             # Argument: 'xs:long'
112              
113             =cut
114              
115             sub setDestinationParentCategoryID {
116             my $self = shift;
117             $self->{'DestinationParentCategoryID'} = shift
118             }
119              
120             =head2 getDestinationParentCategoryID()
121              
122             # Returns: 'xs:long'
123              
124             =cut
125              
126             sub getDestinationParentCategoryID {
127             my $self = shift;
128             return $self->{'DestinationParentCategoryID'};
129             }
130              
131              
132             =head2 setItemDestinationCategoryID()
133              
134             Items can only be contained within child categories. A parent category
135             cannot contain items. If adding, moving, or deleting categories displaces
136             items, you must specify a destination child category under which the
137             displaced items will be moved. The destination category must have no
138             child categories.
139              
140             RequiredInput: Conditionally
141             # Argument: 'xs:long'
142              
143             =cut
144              
145             sub setItemDestinationCategoryID {
146             my $self = shift;
147             $self->{'ItemDestinationCategoryID'} = shift
148             }
149              
150             =head2 getItemDestinationCategoryID()
151              
152             # Returns: 'xs:long'
153              
154             =cut
155              
156             sub getItemDestinationCategoryID {
157             my $self = shift;
158             return $self->{'ItemDestinationCategoryID'};
159             }
160              
161              
162             =head2 setStoreCategories()
163              
164             Contains information for specifying the store categories being acted on.
165              
166             RequiredInput: Yes
167             # Argument: 'ns:StoreCustomCategoryArrayType'
168              
169             =cut
170              
171             sub setStoreCategories {
172             my $self = shift;
173             $self->{'StoreCategories'} = shift
174             }
175              
176             =head2 getStoreCategories()
177              
178             # Returns: 'ns:StoreCustomCategoryArrayType'
179              
180             =cut
181              
182             sub getStoreCategories {
183             my $self = shift;
184             return $self->_getDataTypeInstance( 'StoreCategories'
185             ,'eBay::API::XML::DataType::StoreCustomCategoryArrayType');
186             }
187              
188              
189              
190              
191              
192             ## Attribute and Property lists
193             sub getPropertiesList {
194             my $self = shift;
195             return \@gaProperties;
196             }
197              
198             sub getAttributesList {
199             my $self = shift;
200             return \@gaAttributes;
201             }
202              
203              
204              
205             1;