Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/muffin_man/fulfillment_inbound/v0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,20 @@ def void_transport(shipment_id)
@request_type = "POST"
call_api
end

def get_shipment_items(query_type, marketplace_id, last_updated_after: nil, last_updated_before: nil, next_token: nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add some rspecs for this and we are good to merge!

@local_var_path = "/fba/inbound/v0/shipmentItems"
@query_params = {
"MarketplaceId" => marketplace_id,
"QueryType" => query_type,
}
@query_params["LastUpdatedAfter"] = last_updated_after unless last_updated_after.nil?
@query_params["LastUpdatedBefore"] = last_updated_before unless last_updated_before.nil?
@query_params["NextToken"] = next_token unless next_token.nil?

@request_type = "GET"
call_api
end
end
end
end