| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::SetStoreCategories; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2569
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
29
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
26
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. SetStoreCategories.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 |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::SetStoreCategories inherits from the L class |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
36
|
use eBay::API::XML::BaseCall; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::SetStoreCategories::SetStoreCategoriesRequestType; |
|
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::SetStoreCategories::SetStoreCategoriesResponseType; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
|
49
|
|
|
|
|
|
|
return 'SetStoreCategories'; |
|
50
|
|
|
|
|
|
|
} |
|
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
|
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::SetStoreCategories::SetStoreCategoriesRequestType'; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
|
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::SetStoreCategories::SetStoreCategoriesResponseType'; |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
|
59
|
|
|
|
|
|
|
# input properties |
|
60
|
|
|
|
|
|
|
# |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setAction() |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Specifies the type of action (Add, Move, Delete, or Rename) to carry out |
|
65
|
|
|
|
|
|
|
for the specified categories. |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
RequiredInput: Yes |
|
68
|
|
|
|
|
|
|
# Argument: 'ns:StoreCategoryUpdateActionCodeType' |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub setAction { |
|
73
|
|
|
|
|
|
|
my $self = shift; |
|
74
|
|
|
|
|
|
|
my $sAction = shift; |
|
75
|
|
|
|
|
|
|
$self->getRequestDataType()->setAction($sAction); |
|
76
|
|
|
|
|
|
|
} |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 setDestinationParentCategoryID() |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
When adding or moving store categories, specifies the category under |
|
81
|
|
|
|
|
|
|
which the listed categories will be located. To add or move categories to |
|
82
|
|
|
|
|
|
|
the top level, set the value to -999. |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
85
|
|
|
|
|
|
|
# Argument: 'xs:long' |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub setDestinationParentCategoryID { |
|
90
|
|
|
|
|
|
|
my $self = shift; |
|
91
|
|
|
|
|
|
|
my $sDestinationParentCategoryID = shift; |
|
92
|
|
|
|
|
|
|
$self->getRequestDataType()->setDestinationParentCategoryID($sDestinationParentCategoryID); |
|
93
|
|
|
|
|
|
|
} |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 setItemDestinationCategoryID() |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Items can only be contained within child categories. A parent category |
|
98
|
|
|
|
|
|
|
cannot contain items. If adding, moving, or deleting categories displaces |
|
99
|
|
|
|
|
|
|
items, you must specify a destination child category under which the |
|
100
|
|
|
|
|
|
|
displaced items will be moved. The destination category must have no |
|
101
|
|
|
|
|
|
|
child categories. |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
104
|
|
|
|
|
|
|
# Argument: 'xs:long' |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
sub setItemDestinationCategoryID { |
|
109
|
|
|
|
|
|
|
my $self = shift; |
|
110
|
|
|
|
|
|
|
my $sItemDestinationCategoryID = shift; |
|
111
|
|
|
|
|
|
|
$self->getRequestDataType()->setItemDestinationCategoryID($sItemDestinationCategoryID); |
|
112
|
|
|
|
|
|
|
} |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 setStoreCategories() |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Contains information for specifying the store categories being acted on. |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
RequiredInput: Yes |
|
119
|
|
|
|
|
|
|
# Argument: 'ns:StoreCustomCategoryArrayType' |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
sub setStoreCategories { |
|
124
|
|
|
|
|
|
|
my $self = shift; |
|
125
|
|
|
|
|
|
|
my $pStoreCategories = shift; |
|
126
|
|
|
|
|
|
|
$self->getRequestDataType()->setStoreCategories($pStoreCategories); |
|
127
|
|
|
|
|
|
|
} |
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
# |
|
132
|
|
|
|
|
|
|
# output properties |
|
133
|
|
|
|
|
|
|
# |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head2 getStatus() |
|
136
|
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
When a category structure change is processed synchronously, the status |
|
138
|
|
|
|
|
|
|
is returned as Complete or Failed. For asynchronously processed changes, |
|
139
|
|
|
|
|
|
|
the status is reported as Pending. Use GetStoreCategoryUpdateStatus to |
|
140
|
|
|
|
|
|
|
monitor the status of asynchronously processed changes. |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Returned: Always |
|
143
|
|
|
|
|
|
|
# Returns: 'ns:TaskStatusCodeType' |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=cut |
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub getStatus { |
|
148
|
|
|
|
|
|
|
my $self = shift; |
|
149
|
|
|
|
|
|
|
return $self->getResponseDataType()->getStatus(); |
|
150
|
|
|
|
|
|
|
} |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head2 getTaskID() |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
The task ID associated with the category structure change request. If the |
|
155
|
|
|
|
|
|
|
SetStoreCategories call is process synchronously, the task ID is 0. If the |
|
156
|
|
|
|
|
|
|
category structure changes affect many listings, the changes will be |
|
157
|
|
|
|
|
|
|
processed asynchronously and the task ID will be a positive number. Use |
|
158
|
|
|
|
|
|
|
the task ID with GetStoreCategoryUpdateStatus to monitor the status of |
|
159
|
|
|
|
|
|
|
asynchronously processed changes. |
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Returned: Always |
|
162
|
|
|
|
|
|
|
# Returns: 'xs:long' |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=cut |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
sub getTaskID { |
|
167
|
|
|
|
|
|
|
my $self = shift; |
|
168
|
|
|
|
|
|
|
return $self->getResponseDataType()->getTaskID(); |
|
169
|
|
|
|
|
|
|
} |
|
170
|
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
1; |