Class: Peddler::API::MerchantFulfillmentV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::API::MerchantFulfillmentV0
- Defined in:
- lib/peddler/api/merchant_fulfillment_v0.rb
Overview
Selling Partner API for Merchant Fulfillment
The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
Instance Attribute Summary
Attributes inherited from Peddler::API
Instance Method Summary collapse
-
#cancel_shipment(shipment_id, rate_limit: 1.0) ⇒ Hash
Cancel the shipment indicated by the specified shipment identifier.
-
#create_shipment(body, rate_limit: 1.0) ⇒ Hash
Create a shipment with the information provided.
-
#get_additional_seller_inputs(body, rate_limit: 1.0) ⇒ Hash
Gets a list of additional seller inputs required for a ship method.
-
#get_eligible_shipment_services(body, rate_limit: 5.0) ⇒ Hash
Returns a list of shipping service offers that satisfy the specified shipment request details.
-
#get_shipment(shipment_id, rate_limit: 1.0) ⇒ Hash
Returns the shipment information for an existing shipment.
Methods inherited from Peddler::API
#cannot_sandbox!, #endpoint_uri, #http, #initialize, #meter, #must_sandbox!, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#cancel_shipment(shipment_id, rate_limit: 1.0) ⇒ Hash
This operation can make a static sandbox call.
Cancel the shipment indicated by the specified shipment identifier.
48 49 50 51 52 |
# File 'lib/peddler/api/merchant_fulfillment_v0.rb', line 48 def cancel_shipment(shipment_id, rate_limit: 1.0) path = "/mfn/v0/shipments/#{shipment_id}" meter(rate_limit).delete(path) end |
#create_shipment(body, rate_limit: 1.0) ⇒ Hash
This operation can make a static sandbox call.
Create a shipment with the information provided.
60 61 62 63 64 |
# File 'lib/peddler/api/merchant_fulfillment_v0.rb', line 60 def create_shipment(body, rate_limit: 1.0) path = "/mfn/v0/shipments" meter(rate_limit).post(path, body:) end |
#get_additional_seller_inputs(body, rate_limit: 1.0) ⇒ Hash
This operation can make a static sandbox call.
Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping.
73 74 75 76 77 |
# File 'lib/peddler/api/merchant_fulfillment_v0.rb', line 73 def get_additional_seller_inputs(body, rate_limit: 1.0) path = "/mfn/v0/additionalSellerInputs" meter(rate_limit).post(path, body:) end |
#get_eligible_shipment_services(body, rate_limit: 5.0) ⇒ Hash
This operation can make a static sandbox call.
Returns a list of shipping service offers that satisfy the specified shipment request details.
24 25 26 27 28 |
# File 'lib/peddler/api/merchant_fulfillment_v0.rb', line 24 def get_eligible_shipment_services(body, rate_limit: 5.0) path = "/mfn/v0/eligibleShippingServices" meter(rate_limit).post(path, body:) end |
#get_shipment(shipment_id, rate_limit: 1.0) ⇒ Hash
This operation can make a static sandbox call.
Returns the shipment information for an existing shipment.
36 37 38 39 40 |
# File 'lib/peddler/api/merchant_fulfillment_v0.rb', line 36 def get_shipment(shipment_id, rate_limit: 1.0) path = "/mfn/v0/shipments/#{shipment_id}" meter(rate_limit).get(path) end |