lib/mws/subscriptions/client.rb in peddler-0.11.0 vs lib/mws/subscriptions/client.rb in peddler-0.11.1

- old
+ new

@@ -15,11 +15,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 = marketplace_id()) operation('RegisterDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -29,11 +29,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 = marketplace_id()) operation('DeregisterDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -42,11 +42,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 = marketplace_id()) operation('ListRegisteredDestinations') .add('MarketplaceId' => marketplace_id) run end @@ -55,11 +55,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 = marketplace_id()) operation('SendTestNotificationToDestination') .add('MarketplaceId' => marketplace_id) .add(build_destination(sqs_queue_url)) run @@ -70,11 +70,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 = marketplace_id()) operation('CreateSubscription') .add('MarketplaceId' => marketplace_id) .add(build_subscription(notification_type, sqs_queue_url)) run @@ -85,11 +85,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 = marketplace_id()) operation('GetSubscription') .add( 'MarketplaceId' => marketplace_id, 'NotificationType' => notification_type ) @@ -103,11 +103,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 = marketplace_id()) operation('DeleteSubscription') .add( 'MarketplaceId' => marketplace_id, 'NotificationType' => notification_type ) @@ -119,11 +119,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 = marketplace_id()) operation('ListSubscriptions') .add('MarketplaceId' => marketplace_id) run end @@ -134,10 +134,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 = marketplace_id()) operation('CreateSubscription') .add('MarketplaceId' => marketplace_id) .add(build_subscription(notification_type, sqs_queue_url, enabled)) run