MWS/Feeds.pm

filter: Statementstmt 53.8% 14 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod n/a totaltotal 50.0% 16 / 32 CC 1 SCAR 4.2
CC
1
Cov
54%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.5
« MWS/Orders.pm ↑ Summary MWS/FulfillmentOutbound.pm »
1 package Amazon::MWS::Feeds;
2  
3 8 ▶use Amazon::MWS::Routines qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 my $version = '2009-01-01';
6  
7 define_api_method SubmitFeed =>
8 version => "$version",
9 parameters => {
10 MarketplaceIdList => {
11 required => 0,
12 type => 'IdList',
13 },
14 FeedContent => {
15 required => 1,
16 type => 'HTTP-BODY',
17 },
18 FeedType => {
19 required => 1,
20 type => 'string',
21 },
22 PurgeAndReplace => {
23 type => 'boolean',
24 },
25 },
26 1 ▶ respond => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
27 1 my $root = shift->{FeedSubmissionInfo};
28 1 convert($root, SubmittedDate => 'datetime');
29 1 return $root;
30 8 };
31  
32 define_api_method GetFeedSubmissionList =>
33 version => "$version",
34 parameters => {
35 FeedSubmissionIdList => { type => 'IdList' },
36 MaxCount => { type => 'nonNegativeInteger' },
37 FeedTypeList => { type => 'TypeList' },
38 FeedProcessingStatusList => { type => 'StatusList' },
39 SubmittedFromDate => { type => 'datetime' },
40 SubmittedToDate => { type => 'datetime' },
41 },
42 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 0 my $root = shift;
44 0 convert($root, HasNext => 'boolean');
45 0 Amazon::MWS::Reports::convert_FeedSubmissionInfo($root);
46 0 return $root;
47 8 };
48  
49 define_api_method GetFeedSubmissionListByNextToken =>
50 version => "$version",
51 parameters => {
52 NextToken => {
53 type => 'string',
54 required => 1,
55 },
56 },
57 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
58 0 my $root = shift;
59 0 convert($root, HasNext => 'boolean');
60 0 Amazon::MWS::Reports::convert_FeedSubmissionInfo($root);
61  
62 0 return $root;
63 8 };
64  
65 define_api_method GetFeedSubmissionCount =>
66 version => "$version",
67 parameters => {
68 FeedTypeList => { type => 'TypeList' },
69 FeedProcessingStatusList => { type => 'StatusList' },
70 SubmittedFromDate => { type => 'datetime' },
71 SubmittedToDate => { type => 'datetime' },
72 },
73 0 ▶ respond => sub { $_[0]->{Count} };
Subroutine __ANON__: not called CC=1 SCAR=1.2
74  
75 define_api_method CancelFeedSubmissions =>
76 version => "$version",
77 parameters => {
78 FeedSubmissionIdList => { type => 'IdList' },
79 FeedTypeList => { type => 'TypeList' },
80 SubmittedFromDate => { type => 'datetime' },
81 SubmittedToDate => { type => 'datetime' },
82 },
83 0 ▶ respond => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
84 0 my $root = shift;
85 0 Amazon::MWS::Reports::convert_FeedSubmissionInfo($root);
86 0 return $root;
87 8 };
88  
89 8 define_api_method GetFeedSubmissionResult =>
90 version => "$version",
91 raw_body => 1,
92 parameters => {
93 FeedSubmissionId => {
94 type => 'string',
95 required => 1,
96 },
97 };
98  
99 8 1;
« MWS/Orders.pm ↑ Summary MWS/FulfillmentOutbound.pm »