lib/mws/webstore/client.rb in peddler-0.15.0 vs lib/mws/webstore/client.rb in peddler-0.16.0
- old
+ new
@@ -1,11 +1,11 @@
require 'peddler/client'
module MWS
module Webstore
- # With the Webstore API section of Amazon MWS, you can get “Email Me When
- # Available” subscription information for items listed on your Amazon
+ # With the Webstore API section of Amazon MWS, you can get "Email Me When
+ # Available" subscription information for items listed on your Amazon
# Webstore. The Webstore API section can help you plan your inventory
# replenishment cycle by enabling you to query for items that your customers
# subscribed to when they clicked the Email Me When Available button on your
# Webstore. The Webstore API section can also return information about the
# notifications that were sent to your customers when out-of-stock items
@@ -27,11 +27,11 @@
# @option opts [String, #iso8601] :date_range_start
# @option opts [String, #iso8601] :date_range_end
# @option opts [Array<String>] :seller_sku_list
# @return [Peddler::XMLParser]
def list_subscriptions_count(subscription_state, opts = {})
- opts[:marketplace_id] ||= marketplace_id
+ opts[:marketplace_id] ||= primary_marketplace_id
if opts.key?(:seller_sku_list)
opts['SellerSKUList'] = opts.delete(:seller_sku_list)
end
operation('ListSubscriptionsCount')
.add(opts.update('SubscriptionState' => subscription_state))
@@ -63,15 +63,15 @@
# @param opts [Hash]
# @option opts [String] :marketplace_id
# @option opts [String, #iso8601] :date_range_end
# @return [Peddler::XMLParser]
def get_subscription_details(seller_sku, subscription_state, date_range_start, opts = {})
- opts[:marketplace_id] ||= marketplace_id
+ opts[:marketplace_id] ||= primary_marketplace_id
operation('GetSubscriptionDetails')
.add(opts.update(
- 'SellerSKU' => seller_sku,
- 'SubscriptionState' => subscription_state,
- 'DateRangeStart' => date_range_start
+ 'SellerSKU' => seller_sku,
+ 'SubscriptionState' => subscription_state,
+ 'DateRangeStart' => date_range_start
))
run
end