Class: Peddler::APIs::VendorDirectFulfillmentInventoryV1

Inherits:
Peddler::API
  • Object
show all
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

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

Note:

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.

Parameters:

  • body (Hash)

    The request body containing the inventory update data to submit.

  • warehouse_id (String)

    Identifier for the warehouse for which to update inventory.

  • rate_limit (Float) (defaults to: 10.0)

    Requests per second

  • (Hash[untyped, untyped])
  • (String)
  • rate_limit: (Float) (defaults to: 10.0)

Returns:



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