Sha256: 6742e06311e3c364344ea647c1efb7912d7e0f5a36c787d4bde81f79d70cf6c9

Contents?: true

Size: 607 Bytes

Versions: 16

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

module MuffinMan
  module ProductPricing
    class V0 < SpApiClient
      GET_COMPETITIVE_PRICE_PARAMS = %w[Asins Skus CustomerType].freeze

      def get_competitive_pricing(marketplace_id, item_type='Asin', params = {})
        @params = params
        @local_var_path = "/products/pricing/v0/competitivePrice"
        @query_params = { "MarketplaceId" => marketplace_id,
                          "ItemType" => item_type }
        @query_params.merge!(@params.slice(*GET_COMPETITIVE_PRICE_PARAMS))
        @request_type = "GET"
        call_api
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
muffin_man-1.5.7 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.6 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.5 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.4 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.3 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.2 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.1 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.5.0 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.13 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.12 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.11 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.10 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.9 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.8 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.7 lib/muffin_man/product_pricing/v0.rb
muffin_man-1.4.6 lib/muffin_man/product_pricing/v0.rb