lib/mws/subscriptions/client.rb in peddler-0.15.0 vs lib/mws/subscriptions/client.rb in peddler-0.16.0

- old
+ new

@@ -16,11 +16,11 @@ # # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_RegisterDestination.html # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def register_destination(sqs_queue_url, marketplace_id = marketplace_id()) + def register_destination(sqs_queue_url, marketplace_id = primary_marketplace_id) operation('RegisterDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -30,11 +30,11 @@ # # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_DeregisterDestination.html # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def deregister_destination(sqs_queue_url, marketplace_id = marketplace_id()) + def deregister_destination(sqs_queue_url, marketplace_id = primary_marketplace_id) operation('DeregisterDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -43,11 +43,11 @@ # Lists all registered destinations # # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_ListRegisteredDestinations.html # @param marketplace_id [String] # @return [Peddler::XMLParser] - def list_registered_destinations(marketplace_id = marketplace_id()) + def list_registered_destinations(marketplace_id = primary_marketplace_id) operation('ListRegisteredDestinations') .add('MarketplaceId' => marketplace_id) run end @@ -56,11 +56,11 @@ # # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_SendTestNotificationToDestination.html # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def send_test_notification_to_destination(sqs_queue_url, marketplace_id = marketplace_id()) + def send_test_notification_to_destination(sqs_queue_url, marketplace_id = primary_marketplace_id) operation('SendTestNotificationToDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -71,11 +71,11 @@ # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_CreateSubscription.html # @param notification_type [String] # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def create_subscription(notification_type, sqs_queue_url, marketplace_id = marketplace_id()) + def create_subscription(notification_type, sqs_queue_url, marketplace_id = primary_marketplace_id) operation('CreateSubscription') .add('MarketplaceId' => marketplace_id) .add(build_subscription(notification_type, sqs_queue_url)) run @@ -86,11 +86,11 @@ # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_GetSubscription.html # @param notification_type [String] # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def get_subscription(notification_type, sqs_queue_url, marketplace_id = marketplace_id()) + def get_subscription(notification_type, sqs_queue_url, marketplace_id = primary_marketplace_id) operation('GetSubscription') .add( 'MarketplaceId' => marketplace_id, 'NotificationType' => notification_type ) @@ -104,11 +104,11 @@ # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_DeleteSubscription.html # @param notification_type [String] # @param sqs_queue_url [String] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def delete_subscription(notification_type, sqs_queue_url, marketplace_id = marketplace_id()) + def delete_subscription(notification_type, sqs_queue_url, marketplace_id = primary_marketplace_id) operation('DeleteSubscription') .add( 'MarketplaceId' => marketplace_id, 'NotificationType' => notification_type ) @@ -120,11 +120,11 @@ # Lists current subscriptions # # @see http://docs.developer.amazonservices.com/en_US/subscriptions/Subscriptions_ListSubscriptions.html # @param marketplace_id [String] # @return [Peddler::XMLParser] - def list_subscriptions(marketplace_id = marketplace_id()) + def list_subscriptions(marketplace_id = primary_marketplace_id) operation('ListSubscriptions') .add('MarketplaceId' => marketplace_id) run end @@ -135,10 +135,10 @@ # @param notification_type [String] # @param sqs_queue_url [String] # @param enabled [Boolean] # @param marketplace_id [String] # @return [Peddler::XMLParser] - def update_subscription(notification_type, sqs_queue_url, enabled, marketplace_id = marketplace_id()) + def update_subscription(notification_type, sqs_queue_url, enabled, marketplace_id = primary_marketplace_id) operation('UpdateSubscription') .add('MarketplaceId' => marketplace_id) .add(build_subscription(notification_type, sqs_queue_url, enabled)) run