Class: MuffinMan::ProductPricing::V0
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::ProductPricing::V0
- Defined in:
- lib/muffin_man/product_pricing/v0.rb
Constant Summary collapse
- GET_COMPETITIVE_PRICE_PARAMS =
%w[Asins Skus CustomerType].freeze
Constants inherited from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME
Instance Attribute Summary
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary collapse
Methods inherited from SpApiClient
Constructor Details
This class inherits a constructor from MuffinMan::SpApiClient
Instance Method Details
#get_competitive_pricing(marketplace_id, item_type = 'Asin', params = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/muffin_man/product_pricing/v0.rb', line 8 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 |