MWS/Reports.pm

filter: Statementstmt 22.2% 18 / 81 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 5.5% 1 / 18 Podpod 0.0% 0 / 4 totaltotal 18.4% 19 / 103 CC 5 SCAR 11.9
CC
5
Cov
22%
convert_FeedSubmissionInfo
6.0
convert_ReportRequestInfo
6.0
convert_ReportInfo
6.0
CRAP 3.3
« MWS/XML/Order.pm ↑ Summary MWS/XML/OrderlineItem.pm »
1 package Amazon::MWS::Reports;
2  
3 8 ▶use Amazon::MWS::Routines qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 0 my $root = shift;
17 0 convert_ReportRequestInfo($root);
18 0 return $root;
19 8 };
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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 my $root = shift;
33 0 convert($root, HasNext => 'boolean');
34 0 convert_ReportRequestInfo($root);
35 0 return $root;
36 8 };
37  
38 define_api_method GetReportRequestListByNextToken =>
39 version => '2009-01-01',
40 parameters => {
41 NextToken => {
42 required => 1,
43 type => 'string',
44 },
45 },
46 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
47 0 my $root = shift;
48 0 convert($root, HasNext => 'boolean');
49 0 convert_ReportRequestInfo($root);
50 0 return $root;
51 8 };
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 0 ▶ respond => sub { $_[0]->{Count} };
Subroutine __ANON__: not called CC=1 SCAR=1.2
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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
73 0 my $root = shift;
74 0 convert_ReportRequestInfo($root);
75 0 return $root;
76 8 };
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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
89 0 my $root = shift;
90 0 convert($root, HasNext => 'boolean');
91 0 convert_ReportInfo($root);
92 0 return $root;
93 8 };
94  
95 define_api_method GetReportListByNextToken =>
96 version => '2009-01-01',
97 parameters => {
98 NextToken => {
99 type => 'string',
100 required => 1,
101 },
102 },
103 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
104 0 my $root = shift;
105 0 convert($root, HasNext => 'boolean');
106 0 convert_ReportInfo($root);
107 0 return $root;
108 8 };
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 0 ▶ respond => sub { $_[0]->{Count} };
Subroutine __ANON__: not called CC=1 SCAR=1.2
119  
120 8 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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
138 0 my $root = shift;
139 0 convert_ReportSchedule($root, ScheduledDate => 'datetime');
140 0 return $root;
141 8 };
142  
143 define_api_method GetReportScheduleList =>
144 version => '2009-01-01',
145 parameters => {
146 ReportTypeList => { type => 'ReportType' },
147 },
148 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
149 0 my $root = shift;
150 0 convert($root, HasNext => 'boolean');
151 0 convert_ReportSchedule($root);
152 0 return $root;
153 8 };
154  
155 define_api_method GetReportScheduleListByNextToken =>
156 version => '2009-01-01',
157 parameters => {
158 NextToken => {
159 type => 'string',
160 required => 1,
161 },
162 },
163 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
164 0 my $root = shift;
165 0 convert($root, HasNext => 'boolean');
166 0 convert_ReportSchedule($root);
167 0 return $root;
168 8 };
169  
170 define_api_method GetReportScheduleCount =>
171 version => '2009-01-01',
172 parameters => {
173 ReportTypeList => { type => 'ReportType' },
174 },
175 0 ▶ respond => sub { $_[0]->{Count} };
Subroutine __ANON__: not called CC=1 SCAR=1.2
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 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
187 0 my $root = shift;
188 0 convert_ReportInfo($root);
189 0 return $root;
190 8 };
191  
192 0 ▶sub convert_FeedSubmissionInfo {
Subroutine convert_FeedSubmissionInfo: not called CC=2 SCAR=17.9
Pod undocumented
193 0 my $root = shift;
194 0 force_array($root, 'FeedSubmissionInfo');
195  
196 0 foreach my $info (@{ $root->{FeedSubmissionInfo} }) {
197 0 convert($info, SubmittedDate => 'datetime');
198 }
199 }
200  
201 0 ▶sub convert_ReportRequestInfo {
Subroutine convert_ReportRequestInfo: not called CC=2 SCAR=17.9
Pod undocumented
202 0 my $root = shift;
203 0 force_array($root, 'ReportRequestInfo');
204  
205 0 foreach my $info (@{ $root->{ReportRequestInfo} }) {
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 0 ▶sub convert_ReportInfo {
Subroutine convert_ReportInfo: not called CC=2 SCAR=17.9
Pod undocumented
214 0 my $root = shift;
215 0 force_array($root, 'ReportInfo');
216  
217 0 foreach my $info (@{ $root->{ReportInfo} }) {
218 0 convert($info, AvailableDate => 'datetime');
219 0 convert($info, Acknowledged => 'boolean');
220 }
221 }
222  
223 0 ▶sub convert_ReportSchedule {
Subroutine convert_ReportSchedule: not called CC=2 SCAR=17.9
Pod undocumented
224 0 my $root = shift;
225 0 force_array($root, 'ReportSchedule');
226  
227 0 foreach my $info (@{ $root->{ReportSchedule} }) {
228 0 convert($info, ScheduledDate => 'datetime');
229 }
230 }
231  
232 8 1;
« MWS/XML/Order.pm ↑ Summary MWS/XML/OrderlineItem.pm »