Sha256: 0c03ca2e98620cd1a98f5e243f8c3f3b5bcdd776092f887fb0a500476f1514e6

Contents?: true

Size: 1.91 KB

Versions: 13

Compression:

Stored size: 1.91 KB

Contents

require 'peddler/client'

module MWS
  module FulfillmentInventory
    # The Fulfillment Inventory API can help you stay up-to-date on the
    # availability of your inventory in the Amazon Fulfillment Network. The
    # Fulfillment Inventory API reports real-time availability information for
    # your Amazon Fulfillment Network inventory regardless of whether you are
    # selling your inventory on Amazon's retail web site or through other retail
    # channels.
    class Client < ::Peddler::Client
      version "2010-10-01"
      path "/FulfillmentInventory/#{version}"

      # Returns information about the availability of a seller's inventory
      #
      # @see http://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupply.html
      # @param opts [Hash]
      # @option opts [Array<String>, String] :seller_skus
      # @option opts [String, #iso8601] :query_start_date_time
      # @option opts [String] :response_group
      # @return [Peddler::XMLParser]
      def list_inventory_supply(opts = {})
        operation('ListInventorySupply')
          .add(opts)
          .structure!('SellerSkus', 'member')

        run
      end

      # Returns the next page of information about the availability of a
      # seller's inventory
      #
      # @see http://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupplyByNextToken.html
      # @param next_token [String]
      # @return [Peddler::XMLParser]
      def list_inventory_supply_by_next_token(next_token)
        operation('ListInventorySupplyByNextToken')
          .add('NextToken' => next_token)

        run
      end

      # Gets the operational status of the API
      #
      # @see http://docs.developer.amazonservices.com/en_US/fba_inventory/MWS_GetServiceStatus.html
      # @return [Peddler::XMLParser]
      def get_service_status
        operation('GetServiceStatus')
        run
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
peddler-1.2.0 lib/mws/fulfillment_inventory/client.rb
peddler-1.1.1 lib/mws/fulfillment_inventory/client.rb
peddler-1.1.0 lib/mws/fulfillment_inventory/client.rb
peddler-1.0.2 lib/mws/fulfillment_inventory/client.rb
peddler-1.0.1 lib/mws/fulfillment_inventory/client.rb
peddler-1.0.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.19.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.18.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.17.1 lib/mws/fulfillment_inventory/client.rb
peddler-0.17.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.16.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.15.0 lib/mws/fulfillment_inventory/client.rb
peddler-0.14.0 lib/mws/fulfillment_inventory/client.rb