Sha256: 254d6587a01db66b80e08f130151e14a19998b4c977a070bd79ca49c9e288d46

Contents?: true

Size: 838 Bytes

Versions: 30

Compression:

Stored size: 838 Bytes

Contents

module MuffinMan
  module FbaInventory
    class V1 < SpApiClient

      GET_INVENTORY_SUMMARIES_PARAMS = %w[
        details
        granularityType
        granularityId
        startDateTime
        sellerSkus
        nextToken
        marketplaceIds
      ].freeze

      # NOTE: when passing nextToken, if the original request had a
      # startDateTime, that must be included in subsequent requests.
      def get_inventory_summaries(params)
        if sandbox
          params['granularityType'] = 'Marketplace'
          params['granularityId'] = 'ATVPDKIKX0DER'
          params['marketplaceIds'] = 'ATVPDKIKX0DER'
        end
        @local_var_path = "/fba/inventory/v1/summaries"
        @query_params = params.slice(*GET_INVENTORY_SUMMARIES_PARAMS)
        @request_type = "GET"
        call_api
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
muffin_man-2.4.8 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.7 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.6 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.5 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.4 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.3 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.4.2 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.3.0 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.2.2 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.2.1 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.1.3 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.1.0 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.6 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.5 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.4 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.3 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.2 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.1 lib/muffin_man/fba_inventory/v1.rb
muffin_man-2.0.0 lib/muffin_man/fba_inventory/v1.rb
muffin_man-1.5.12 lib/muffin_man/fba_inventory/v1.rb