Ejemplo n.º 1
0
 /**
  * Update Subscription
  * Update a subscription.
  *
  * @param mixed $request array of parameters for MWSSubscriptionsService_Model_UpdateSubscription request or MWSSubscriptionsService_Model_UpdateSubscription object itself
  * @see MWSSubscriptionsService_Model_UpdateSubscriptionInput
  * @return MWSSubscriptionsService_Model_UpdateSubscriptionResponse
  *
  * @throws MWSSubscriptionsService_Exception
  */
 public function updateSubscription($request)
 {
     if (!$request instanceof MWSSubscriptionsService_Model_UpdateSubscriptionInput) {
         require_once dirname(__FILE__) . '/Model/UpdateSubscriptionInput.php';
         $request = new MWSSubscriptionsService_Model_UpdateSubscriptionInput($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'UpdateSubscription';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/UpdateSubscriptionResponse.php';
     $response = MWSSubscriptionsService_Model_UpdateSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Ejemplo n.º 2
0
 /**
  * Update Subscription
  * Update a subscription.
  *
  * @param mixed $request array of parameters for MWSSubscriptionsService_Model_UpdateSubscription request or MWSSubscriptionsService_Model_UpdateSubscription object itself
  * @see MWSSubscriptionsService_Model_UpdateSubscription
  * @return MWSSubscriptionsService_Model_UpdateSubscriptionResponse
  *
  * @throws MWSSubscriptionsService_Exception
  */
 public function updateSubscription($request)
 {
     require_once dirname(__FILE__) . '/Model/UpdateSubscriptionResponse.php';
     return MWSSubscriptionsService_Model_UpdateSubscriptionResponse::fromXML($this->_invoke('UpdateSubscription'));
 }