Class: MuffinMan::FulfillmentInbound::V20240320
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::FulfillmentInbound::V20240320
show all
- Defined in:
- lib/muffin_man/fulfillment_inbound/v20240320.rb
Constant Summary
collapse
- INBOUND_PATH =
"/inbound/fba/2024-03-20"
Constants inherited
from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE
Instance Attribute Summary
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary
collapse
Methods inherited from SpApiClient
#initialize
Instance Method Details
#get_inbound_plan(inbound_plan_id) ⇒ Object
20
21
22
23
24
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 20
def get_inbound_plan(inbound_plan_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}"
@request_type = "GET"
call_api
end
|
#get_shipment(inbound_plan_id, shipment_id) ⇒ Object
26
27
28
29
30
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 26
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
|
#list_inbound_plans(page_size: nil, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 8
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"] = if
@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
|
#list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
32
33
34
35
36
37
38
39
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 32
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"] = if
@request_type = "GET"
call_api
end
|