line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Amazon::MWS::Reports; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
61
|
use Amazon::MWS::Routines qw(:all); |
|
8
|
|
|
|
|
26
|
|
|
8
|
|
|
|
|
9324
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
define_api_method RequestReport => |
6
|
|
|
|
|
|
|
version => '2009-01-01', |
7
|
|
|
|
|
|
|
parameters => { |
8
|
|
|
|
|
|
|
ReportType => { |
9
|
|
|
|
|
|
|
type => 'string', |
10
|
|
|
|
|
|
|
required => 1, |
11
|
|
|
|
|
|
|
}, |
12
|
|
|
|
|
|
|
StartDate => { type => 'datetime' }, |
13
|
|
|
|
|
|
|
EndDate => { type => 'datetime' }, |
14
|
|
|
|
|
|
|
}, |
15
|
|
|
|
|
|
|
respond => sub { |
16
|
|
|
|
|
|
|
my $root = shift; |
17
|
|
|
|
|
|
|
convert_ReportRequestInfo($root); |
18
|
|
|
|
|
|
|
return $root; |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
define_api_method GetReportRequestList => |
22
|
|
|
|
|
|
|
version => '2009-01-01', |
23
|
|
|
|
|
|
|
parameters => { |
24
|
|
|
|
|
|
|
ReportRequestIdList => { type => 'IdList' }, |
25
|
|
|
|
|
|
|
ReportTypeList => { type => 'TypeList' }, |
26
|
|
|
|
|
|
|
ReportProcessingStatusList => { type => 'StatusList' }, |
27
|
|
|
|
|
|
|
MaxCount => { type => 'nonNegativeInteger' }, |
28
|
|
|
|
|
|
|
RequestedFromDate => { type => 'datetime' }, |
29
|
|
|
|
|
|
|
RequestedToDate => { type => 'datetime' }, |
30
|
|
|
|
|
|
|
}, |
31
|
|
|
|
|
|
|
respond => sub { |
32
|
|
|
|
|
|
|
my $root = shift; |
33
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
34
|
|
|
|
|
|
|
convert_ReportRequestInfo($root); |
35
|
|
|
|
|
|
|
return $root; |
36
|
|
|
|
|
|
|
}; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
define_api_method GetReportRequestListByNextToken => |
39
|
|
|
|
|
|
|
version => '2009-01-01', |
40
|
|
|
|
|
|
|
parameters => { |
41
|
|
|
|
|
|
|
NextToken => { |
42
|
|
|
|
|
|
|
required => 1, |
43
|
|
|
|
|
|
|
type => 'string', |
44
|
|
|
|
|
|
|
}, |
45
|
|
|
|
|
|
|
}, |
46
|
|
|
|
|
|
|
respond => sub { |
47
|
|
|
|
|
|
|
my $root = shift; |
48
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
49
|
|
|
|
|
|
|
convert_ReportRequestInfo($root); |
50
|
|
|
|
|
|
|
return $root; |
51
|
|
|
|
|
|
|
}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
define_api_method GetReportRequestCount => |
54
|
|
|
|
|
|
|
version => '2009-01-01', |
55
|
|
|
|
|
|
|
parameters => { |
56
|
|
|
|
|
|
|
ReportTypeList => { type => 'TypeList' }, |
57
|
|
|
|
|
|
|
ReportProcessingStatusList => { type => 'StatusList' }, |
58
|
|
|
|
|
|
|
RequestedFromDate => { type => 'datetime' }, |
59
|
|
|
|
|
|
|
RequestedToDate => { type => 'datetime' }, |
60
|
|
|
|
|
|
|
}, |
61
|
|
|
|
|
|
|
respond => sub { $_[0]->{Count} }; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
define_api_method CancelReportRequests => |
64
|
|
|
|
|
|
|
version => '2009-01-01', |
65
|
|
|
|
|
|
|
parameters => { |
66
|
|
|
|
|
|
|
ReportRequestIdList => { type => 'IdList' }, |
67
|
|
|
|
|
|
|
ReportTypeList => { type => 'TypeList' }, |
68
|
|
|
|
|
|
|
ReportProcessingStatusList => { type => 'StatusList' }, |
69
|
|
|
|
|
|
|
RequestedFromDate => { type => 'datetime' }, |
70
|
|
|
|
|
|
|
RequestedToDate => { type => 'datetime' }, |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
respond => sub { |
73
|
|
|
|
|
|
|
my $root = shift; |
74
|
|
|
|
|
|
|
convert_ReportRequestInfo($root); |
75
|
|
|
|
|
|
|
return $root; |
76
|
|
|
|
|
|
|
}; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
define_api_method GetReportList => |
79
|
|
|
|
|
|
|
version => '2009-01-01', |
80
|
|
|
|
|
|
|
parameters => { |
81
|
|
|
|
|
|
|
MaxCount => { type => 'nonNegativeInteger' }, |
82
|
|
|
|
|
|
|
ReportTypeList => { type => 'TypeList' }, |
83
|
|
|
|
|
|
|
Acknowledged => { type => 'boolean' }, |
84
|
|
|
|
|
|
|
AvailableFromDate => { type => 'datetime' }, |
85
|
|
|
|
|
|
|
AvailableToDate => { type => 'datetime' }, |
86
|
|
|
|
|
|
|
ReportRequestIdList => { type => 'IdList' }, |
87
|
|
|
|
|
|
|
}, |
88
|
|
|
|
|
|
|
respond => sub { |
89
|
|
|
|
|
|
|
my $root = shift; |
90
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
91
|
|
|
|
|
|
|
convert_ReportInfo($root); |
92
|
|
|
|
|
|
|
return $root; |
93
|
|
|
|
|
|
|
}; |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
define_api_method GetReportListByNextToken => |
96
|
|
|
|
|
|
|
version => '2009-01-01', |
97
|
|
|
|
|
|
|
parameters => { |
98
|
|
|
|
|
|
|
NextToken => { |
99
|
|
|
|
|
|
|
type => 'string', |
100
|
|
|
|
|
|
|
required => 1, |
101
|
|
|
|
|
|
|
}, |
102
|
|
|
|
|
|
|
}, |
103
|
|
|
|
|
|
|
respond => sub { |
104
|
|
|
|
|
|
|
my $root = shift; |
105
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
106
|
|
|
|
|
|
|
convert_ReportInfo($root); |
107
|
|
|
|
|
|
|
return $root; |
108
|
|
|
|
|
|
|
}; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
define_api_method GetReportCount => |
111
|
|
|
|
|
|
|
version => '2009-01-01', |
112
|
|
|
|
|
|
|
parameters => { |
113
|
|
|
|
|
|
|
ReportTypeList => { type => 'TypeList' }, |
114
|
|
|
|
|
|
|
Acknowledged => { type => 'boolean' }, |
115
|
|
|
|
|
|
|
AvailableFromDate => { type => 'datetime' }, |
116
|
|
|
|
|
|
|
AvailableToDate => { type => 'datetime' }, |
117
|
|
|
|
|
|
|
}, |
118
|
|
|
|
|
|
|
respond => sub { $_[0]->{Count} }; |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
define_api_method GetReport => |
121
|
|
|
|
|
|
|
version => '2009-01-01', |
122
|
|
|
|
|
|
|
raw_body => 1, |
123
|
|
|
|
|
|
|
parameters => { |
124
|
|
|
|
|
|
|
ReportId => { |
125
|
|
|
|
|
|
|
type => 'nonNegativeInteger', |
126
|
|
|
|
|
|
|
required => 1, |
127
|
|
|
|
|
|
|
} |
128
|
|
|
|
|
|
|
}; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
define_api_method ManageReportSchedule => |
131
|
|
|
|
|
|
|
version => '2009-01-01', |
132
|
|
|
|
|
|
|
parameters => { |
133
|
|
|
|
|
|
|
ReportType => { type => 'string' }, |
134
|
|
|
|
|
|
|
Schedule => { type => 'string' }, |
135
|
|
|
|
|
|
|
ScheduledDate => { type => 'datetime' }, |
136
|
|
|
|
|
|
|
}, |
137
|
|
|
|
|
|
|
respond => sub { |
138
|
|
|
|
|
|
|
my $root = shift; |
139
|
|
|
|
|
|
|
convert_ReportSchedule($root, ScheduledDate => 'datetime'); |
140
|
|
|
|
|
|
|
return $root; |
141
|
|
|
|
|
|
|
}; |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
define_api_method GetReportScheduleList => |
144
|
|
|
|
|
|
|
version => '2009-01-01', |
145
|
|
|
|
|
|
|
parameters => { |
146
|
|
|
|
|
|
|
ReportTypeList => { type => 'ReportType' }, |
147
|
|
|
|
|
|
|
}, |
148
|
|
|
|
|
|
|
respond => sub { |
149
|
|
|
|
|
|
|
my $root = shift; |
150
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
151
|
|
|
|
|
|
|
convert_ReportSchedule($root); |
152
|
|
|
|
|
|
|
return $root; |
153
|
|
|
|
|
|
|
}; |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
define_api_method GetReportScheduleListByNextToken => |
156
|
|
|
|
|
|
|
version => '2009-01-01', |
157
|
|
|
|
|
|
|
parameters => { |
158
|
|
|
|
|
|
|
NextToken => { |
159
|
|
|
|
|
|
|
type => 'string', |
160
|
|
|
|
|
|
|
required => 1, |
161
|
|
|
|
|
|
|
}, |
162
|
|
|
|
|
|
|
}, |
163
|
|
|
|
|
|
|
respond => sub { |
164
|
|
|
|
|
|
|
my $root = shift; |
165
|
|
|
|
|
|
|
convert($root, HasNext => 'boolean'); |
166
|
|
|
|
|
|
|
convert_ReportSchedule($root); |
167
|
|
|
|
|
|
|
return $root; |
168
|
|
|
|
|
|
|
}; |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
define_api_method GetReportScheduleCount => |
171
|
|
|
|
|
|
|
version => '2009-01-01', |
172
|
|
|
|
|
|
|
parameters => { |
173
|
|
|
|
|
|
|
ReportTypeList => { type => 'ReportType' }, |
174
|
|
|
|
|
|
|
}, |
175
|
|
|
|
|
|
|
respond => sub { $_[0]->{Count} }; |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
define_api_method UpdateReportAcknowledgements => |
178
|
|
|
|
|
|
|
version => '2009-01-01', |
179
|
|
|
|
|
|
|
parameters => { |
180
|
|
|
|
|
|
|
ReportIdList => { |
181
|
|
|
|
|
|
|
type => 'IdList', |
182
|
|
|
|
|
|
|
required => 1, |
183
|
|
|
|
|
|
|
}, |
184
|
|
|
|
|
|
|
Acknowledged => { type => 'boolean' }, |
185
|
|
|
|
|
|
|
}, |
186
|
|
|
|
|
|
|
respond => sub { |
187
|
|
|
|
|
|
|
my $root = shift; |
188
|
|
|
|
|
|
|
convert_ReportInfo($root); |
189
|
|
|
|
|
|
|
return $root; |
190
|
|
|
|
|
|
|
}; |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
sub convert_FeedSubmissionInfo { |
193
|
0
|
|
|
0
|
0
|
|
my $root = shift; |
194
|
0
|
|
|
|
|
|
force_array($root, 'FeedSubmissionInfo'); |
195
|
|
|
|
|
|
|
|
196
|
0
|
|
|
|
|
|
foreach my $info (@{ $root->{FeedSubmissionInfo} }) { |
|
0
|
|
|
|
|
|
|
197
|
0
|
|
|
|
|
|
convert($info, SubmittedDate => 'datetime'); |
198
|
|
|
|
|
|
|
} |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
sub convert_ReportRequestInfo { |
202
|
0
|
|
|
0
|
0
|
|
my $root = shift; |
203
|
0
|
|
|
|
|
|
force_array($root, 'ReportRequestInfo'); |
204
|
|
|
|
|
|
|
|
205
|
0
|
|
|
|
|
|
foreach my $info (@{ $root->{ReportRequestInfo} }) { |
|
0
|
|
|
|
|
|
|
206
|
0
|
|
|
|
|
|
convert($info, StartDate => 'datetime'); |
207
|
0
|
|
|
|
|
|
convert($info, EndDate => 'datetime'); |
208
|
0
|
|
|
|
|
|
convert($info, Scheduled => 'boolean'); |
209
|
0
|
|
|
|
|
|
convert($info, SubmittedDate => 'datetime'); |
210
|
|
|
|
|
|
|
} |
211
|
|
|
|
|
|
|
} |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
sub convert_ReportInfo { |
214
|
0
|
|
|
0
|
0
|
|
my $root = shift; |
215
|
0
|
|
|
|
|
|
force_array($root, 'ReportInfo'); |
216
|
|
|
|
|
|
|
|
217
|
0
|
|
|
|
|
|
foreach my $info (@{ $root->{ReportInfo} }) { |
|
0
|
|
|
|
|
|
|
218
|
0
|
|
|
|
|
|
convert($info, AvailableDate => 'datetime'); |
219
|
0
|
|
|
|
|
|
convert($info, Acknowledged => 'boolean'); |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
sub convert_ReportSchedule { |
224
|
0
|
|
|
0
|
0
|
|
my $root = shift; |
225
|
0
|
|
|
|
|
|
force_array($root, 'ReportSchedule'); |
226
|
|
|
|
|
|
|
|
227
|
0
|
|
|
|
|
|
foreach my $info (@{ $root->{ReportSchedule} }) { |
|
0
|
|
|
|
|
|
|
228
|
0
|
|
|
|
|
|
convert($info, ScheduledDate => 'datetime'); |
229
|
|
|
|
|
|
|
} |
230
|
|
|
|
|
|
|
} |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
1; |