Skip to content

Commit 6e364c6

Browse files
committed
get_shipment_items
1 parent fe6571f commit 6e364c6

File tree

1 file changed

+14
-0
lines changed
  • lib/muffin_man/fulfillment_inbound

1 file changed

+14
-0
lines changed

lib/muffin_man/fulfillment_inbound/v0.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,20 @@ def void_transport(shipment_id)
137137
@request_type = "POST"
138138
call_api
139139
end
140+
141+
def get_shipment_items(query_type, marketplace_id, last_updated_after: nil, last_updated_before: nil, next_token: nil)
142+
@local_var_path = "/fba/inbound/v0/shipmentItems"
143+
@query_params = {
144+
"MarketplaceId" => marketplace_id,
145+
"QueryType" => query_type,
146+
}
147+
@query_params["LastUpdatedAfter"] = last_updated_after unless last_updated_after.nil?
148+
@query_params["LastUpdatedBefore"] = last_updated_before unless last_updated_before.nil?
149+
@query_params["NextToken"] = next_token unless next_token.nil?
150+
151+
@request_type = "GET"
152+
call_api
153+
end
140154
end
141155
end
142156
end

0 commit comments

Comments
 (0)