Sha256: 01fbfee29b2352d1e87fd4be4e59391f122f1bd3ae49a7756cca3380eecb0edb
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
module MuffinMan module FulfillmentInbound class V0 < SpApiClient def get_prep_instructions(ship_to_country_code, seller_sku_list: [], asin_list: []) @local_var_path = "/fba/inbound/v0/prepInstructions" @query_params = { "ShipToCountryCode" => ship_to_country_code } @query_params["SellerSKUList"] = seller_sku_list.join(",") if seller_sku_list.any? @query_params["ASINList"] = asin_list.join(",") if asin_list.any? @request_type = "GET" call_api end def create_inbound_shipment_plan(ship_from_address, label_prep_preference, inbound_shipment_plan_request_items, ship_to_country_code: nil, ship_to_country_subdivision_code: nil) @local_var_path = "/fba/inbound/v0/plans" @request_body = { "ShipFromAddress" => ship_from_address, "LabelPrepPreference" => label_prep_preference, "InboundShipmentPlanRequestItems" => inbound_shipment_plan_request_items, } @request_body["ShipToCountryCode"] = ship_to_country_code unless ship_to_country_code.nil? @request_body["ShipToCountrySubdivisionCode"] = ship_to_country_subdivision_code unless ship_to_country_subdivision_code.nil? @request_type = "POST" call_api end def create_inbound_shipment(shipment_id, marketplace_id, inbound_shipment_header, inbound_shipment_items) @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}" @request_body = { "MarketplaceId": marketplace_id, "InboundShipmentHeader": inbound_shipment_header, "InboundShipmentItems": inbound_shipment_items, } @request_type = "POST" call_api end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muffin_man-1.4.9 | lib/muffin_man/fulfillment_inbound/v0.rb |
muffin_man-1.4.8 | lib/muffin_man/fulfillment_inbound/v0.rb |