Method: MWS::Subscriptions::Client#update_subscription

Defined in:
lib/mws/subscriptions/client.rb

#update_subscription(notification_type, sqs_queue_url, enabled, marketplace_id) ⇒ Peddler::XMLParser

Updates a subscription

Parameters:

  • notification_type (String)
  • sqs_queue_url (String)
  • enabled (Boolean)
  • marketplace_id (String)

Returns:

  • (Peddler::XMLParser)

See Also:



138
139
140
141
142
143
144
145
# File 'lib/mws/subscriptions/client.rb', line 138

def update_subscription(notification_type, sqs_queue_url, enabled,
                        marketplace_id)
  operation('UpdateSubscription')
    .add('MarketplaceId' => marketplace_id)
    .add(build_subscription(notification_type, sqs_queue_url, enabled: enabled))

  run
end