Class: Peddler::APIs::VendorDirectFulfillmentInventoryV1
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::VendorDirectFulfillmentInventoryV1
- Defined in:
- lib/peddler/apis/vendor_direct_fulfillment_inventory_v1.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/error.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/error_list.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/item_details.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/item_quantity.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/inventory_update.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/party_identification.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/transaction_reference.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/submit_inventory_update_request.rb,
lib/peddler/apis/vendor_direct_fulfillment_inventory_v1/submit_inventory_update_response.rb,
sig/peddler/apis/vendor_direct_fulfillment_inventory_v1.rbs
Overview
Selling Partner API for Direct Fulfillment Inventory Updates
The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.
Defined Under Namespace
Classes: Error, ErrorList, InventoryUpdate, ItemDetails, ItemQuantity, PartyIdentification, SubmitInventoryUpdateRequest, SubmitInventoryUpdateResponse, TransactionReference
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#submit_inventory_update(body, warehouse_id, rate_limit: 10.0) ⇒ Peddler::Response
Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items.
Methods inherited from Peddler::API
#cannot_sandbox!, #delete, #endpoint_uri, #get, #http, #initialize, #must_sandbox!, #patch, #percent_encode, #post, #put, #request, #sandbox, #sandbox?, #stringify_array, #timestamp, #user_agent
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#submit_inventory_update(body, warehouse_id, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items.
21 22 23 24 25 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_inventory_v1.rb', line 21 def submit_inventory_update(body, warehouse_id, rate_limit: 10.0) path = "/vendor/directFulfillment/inventory/v1/warehouses/#{percent_encode(warehouse_id)}/items" parser = -> { SubmitInventoryUpdateResponse } post(path, body:, rate_limit:, parser:) end |