File Coverage

blib/lib/Amazon/MWS/InboundShipments.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Amazon::MWS::InboundShipment;
2              
3 8     8   64 use Amazon::MWS::Routines qw(:all);
  8         20  
  8         4911  
4              
5             my $inbound_service = '/FulfillmentInboundShipment/2010-10-01';
6              
7             define_api_method GetServiceStatus =>
8             version => '2010-10-01',
9             raw_body => 0,
10             service => "$inbound_service",
11             module_name => 'Amazon::MWS::InboundShipment',
12             parameters => {},
13             respond => sub {
14             my $root = shift;
15             return $root->{Status};
16             };
17              
18             define_api_method GetInboundGuidanceForASIN =>
19             version => '2010-10-01',
20             raw_body => 1,
21             service => "$inbound_service",
22             parameters => {
23             ASINList => {
24             type => 'ASINList',
25             required => 1
26             },
27             MarketplaceId => { type => 'string', required=>1 },
28             };
29              
30             define_api_method GetInboundGuidanceForSKU =>
31             version => '2010-10-01',
32             raw_body => 1,
33             service => "$inbound_service",
34             parameters => {
35             SellerSKUList => {
36             type => 'SellerSKUList',
37             required => 1
38             },
39             MarketplaceId => { type => 'string', required=>1 },
40             };
41              
42             define_api_method GetPrepInstructionsForASIN =>
43             version => '2010-10-01',
44             raw_body => 1,
45             service => "$inbound_service",
46             parameters => {
47             ASINList => {
48             type => 'ASINList',
49             required => 1
50             },
51             ShipToCountryCode => { type => 'string', required=>1 },
52             };
53              
54             define_api_method GetPrepInstructionsForSKU =>
55             version => '2010-10-01',
56             raw_body => 1,
57             service => "$inbound_service",
58             parameters => {
59             SellerSKUList => {
60             type => 'SellerSKUList',
61             required => 1
62             },
63             ShipToCountryCode => { type => 'string', required=>1 },
64             };
65              
66             define_api_method ListInboundShipments =>
67             raw_body => 1,
68             service => "$inbound_service",
69             parameters => {
70             ShipmentStatusList => {
71             required => 1,
72             type => 'MemberList'
73             },
74             LastUpdatedAfter => { type => 'datetime' },
75             LastUpdatedBefore => { type => 'datetime' }
76             };
77              
78             define_api_method ListInboundShipmentsByNextToken =>
79             raw_body => 1,
80             service => "$inbound_service",
81             parameters => {
82             NextToken => {
83             type => 'string',
84             required => 1,
85             },
86             };
87              
88             define_api_method ListInboundShipmentItems =>
89             raw_body => 1,
90             service => "$inbound_service",
91             parameters => {
92             ShipmentId => {
93             required => 1,
94             type => 'string',
95             },
96             LastUpdatedAfter => { type => 'datetime' },
97             LastUpdatedBefore => { type => 'datetime' }
98             };
99              
100             define_api_method ListInboundShipmentItemsByNextToken =>
101             raw_body => 1,
102             service => "$inbound_service",
103             parameters => {
104             NextToken => {
105             type => 'string',
106             required => 1,
107             },
108             };
109              
110              
111             define_api_method CreateInboundShipmentPlan =>
112             version => '2010-10-01',
113             raw_body => 1,
114             method => 'POST',
115             service => "$inbound_service",
116             parameters => {
117             LabelPrepPreference => { type => 'string' },
118             'ShipFromAddress.Name' => { required => 1, type=>'string' },
119             'ShipFromAddress.AddressLine1' => { required => 1, type=>'string' },
120             'ShipFromAddress.City' => { required => 1, type=>'string' },
121             'ShipFromAddress.StateOrProvinceCode' => { required => 1, type=>'string' },
122             'ShipFromAddress.PostalCode' => { required => 1, type=>'string' },
123             'ShipFromAddress.CountryCode' => { required => 1, type=>'string' },
124             'ShipFromAddress.AddressLine2' => { type=>'string' },
125             'ShipFromAddress.DistrictOrCounty' => { type=>'string' },
126             'InboundShipmentPlanRequestItems' => {
127             array_names => ['SellerSKU','Quantity','ASIN','Condition'],
128             type => 'memberArray',
129             }
130             };
131              
132             define_api_method CreateInboundShipment =>
133             version => '2010-10-01',
134             raw_body => 1,
135             method => 'POST',
136             service => "$inbound_service",
137             parameters => {
138             ShipmentId => { type => 'string' },
139             'InboundShipmentHeader.ShipmentName' => { required => 1, type => 'string' },
140             'InboundShipmentHeader.ShipFromAddress.Name' => { required => 1, type => 'string' },
141             'InboundShipmentHeader.ShipFromAddress.AddressLine1' => { required => 1, type => 'string' },
142             'InboundShipmentHeader.ShipFromAddress.AddressLine2' => { type => 'string' },
143             'InboundShipmentHeader.ShipFromAddress.City' => { required => 1, type => 'string' },
144             'InboundShipmentHeader.ShipFromAddress.DistrictOrCounty' => { type => 'string' },
145             'InboundShipmentHeader.ShipFromAddress.StateOrProvince' => { required => 1, type => 'string' },
146             'InboundShipmentHeader.ShipFromAddress.PostalCode' => { required => 1, type => 'string' },
147             'InboundShipmentHeader.ShipFromAddress.CountryCode' => { required => 1, type => 'string' },
148             'InboundShipmentHeader.DestinationFulfillmentCenterId' => { required => 1, type => 'string' },
149             'InboundShipmentHeader.ShipmentStatus' => { required => 1, type => 'string' },
150             'InboundShipmentHeader.LabelPrepPreference' => { required => 1, type => 'string' },
151             InboundShipmentItems => {
152             array_names => ['SellerSKU','QuantityShipped'],
153             type => 'memberArray',
154             }
155             };
156