Sha256: 1ea33eaa38c754970c99ccc06f1bcf589bf9b706540f8fc460f6ebbc8ea9ed6d
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
# frozen_string_literal: true module MuffinMan module FulfillmentInbound class V20240320 < SpApiClient INBOUND_PATH = "/inbound/fba/2024-03-20" def list_inbound_plans(page_size: nil, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil) @local_var_path = "#{INBOUND_PATH}/inboundPlans" @query_params = {} @query_params["pageSize"] = page_size if page_size @query_params["paginationToken"] = pagination_token if pagination_token @query_params["status"] = status if status @query_params["sortBy"] = sort_by if sort_by @query_params["sortOrder"] = sort_order if sort_order @request_type = "GET" call_api end def get_inbound_plan(inbound_plan_id) @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}" @request_type = "GET" call_api end def get_shipment(inbound_plan_id, shipment_id) @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}" @request_type = "GET" call_api end def list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/boxes" @query_params = {} @query_params["pageSize"] = page_size if page_size @query_params["paginationToken"] = pagination_token if pagination_token @request_type = "GET" call_api end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muffin_man-2.2.2 | lib/muffin_man/fulfillment_inbound/v20240320.rb |
muffin_man-2.2.1 | lib/muffin_man/fulfillment_inbound/v20240320.rb |