Class: MuffinMan::FulfillmentOutbound::V20200701
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::FulfillmentOutbound::V20200701
- Defined in:
- lib/muffin_man/fulfillment_outbound/v20200701.rb
Constant Summary
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
- #cancel_fulfillment_order(seller_fulfillment_order_id) ⇒ Object
-
#create_fulfillment_order(fulfillment_order_request) ⇒ Object
in the form of object.
- #get_fulfillment_order(seller_fulfillment_order_id) ⇒ Object
-
#get_fulfillment_preview(fulfillment_preview_request) ⇒ Object
in the form of object.
- #list_all_fulfillment_orders(query_start_date: nil, next_token: nil) ⇒ Object
Methods inherited from SpApiClient
Constructor Details
This class inherits a constructor from MuffinMan::SpApiClient
Instance Method Details
#cancel_fulfillment_order(seller_fulfillment_order_id) ⇒ Object
49 50 51 52 53 |
# File 'lib/muffin_man/fulfillment_outbound/v20200701.rb', line 49 def cancel_fulfillment_order(seller_fulfillment_order_id) @local_var_path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{seller_fulfillment_order_id}/cancel" @request_type = "PUT" call_api end |
#create_fulfillment_order(fulfillment_order_request) ⇒ Object
in the form of object
19 20 21 22 23 24 25 26 |
# File 'lib/muffin_man/fulfillment_outbound/v20200701.rb', line 19 def create_fulfillment_order(fulfillment_order_request) return unprocessable_entity(fulfillment_order_request&.errors) unless fulfillment_order_request&.valid? @local_var_path = "/fba/outbound/2020-07-01/fulfillmentOrders" @request_body = fulfillment_order_request.to_camelize @request_type = "POST" call_api end |
#get_fulfillment_order(seller_fulfillment_order_id) ⇒ Object
42 43 44 45 46 |
# File 'lib/muffin_man/fulfillment_outbound/v20200701.rb', line 42 def get_fulfillment_order(seller_fulfillment_order_id) @local_var_path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{seller_fulfillment_order_id}" @request_type = "GET" call_api end |
#get_fulfillment_preview(fulfillment_preview_request) ⇒ Object
in the form of object
8 9 10 11 12 13 14 15 |
# File 'lib/muffin_man/fulfillment_outbound/v20200701.rb', line 8 def get_fulfillment_preview(fulfillment_preview_request) return unprocessable_entity(fulfillment_preview_request&.errors) unless fulfillment_preview_request&.valid? @local_var_path = "/fba/outbound/2020-07-01/fulfillmentOrders/preview" @request_body = fulfillment_preview_request.to_camelize @request_type = "POST" call_api end |
#list_all_fulfillment_orders(query_start_date: nil, next_token: nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/muffin_man/fulfillment_outbound/v20200701.rb', line 30 def list_all_fulfillment_orders(query_start_date: nil, next_token: nil) @local_var_path = "/fba/outbound/2020-07-01/fulfillmentOrders" @query_params = {} unless query_start_date.nil? && next_token.nil? @query_params[:queryStartDate] = query_start_date unless query_start_date.nil? @query_params[:nextToken] = next_token unless next_token.nil? @request_type = "GET" call_api end |