/**
  * Update information about the required customer. 
  * Note that you need to pass only those arguments which you want to be updated.
  * SOAP Method: customerCustomerUpdate
  * @param int $id
  * @param IResource $resource
  * @return ProxyResultBase
  */
 public function Update($id, IResource $resource)
 {
     try {
         $result = $this->GetContext()->GetClient()->customerCustomerUpdate($this->GetContext()->GetSession(), $id, $resource->ObjectToArray());
         return ProxyResultBase::CreateSuccessResult($result);
     } catch (\SoapFault $ex) {
         $errors = array();
         return ProxyResultBase::CreateErrorResult($errors, $ex->getMessage());
     }
 }
 public function UpdateByStoreId($store_id, $id, IResource $resource)
 {
     $this->ValidateProductId();
     $resourceUrl = $this->GetContext()->GetApiUrl() . "/products/{$this->product_id}/images/{$id}/store/{$store_id}";
     $resourceData = json_encode($resource->ObjectToArray());
     try {
         $this->GetContext()->GetClient()->fetch($resourceUrl, $resourceData, OAUTH_HTTP_METHOD_PUT, $this->GetContext()->GetHeaders());
         $lastResponse = $this->GetContext()->GetClient()->getLastResponse();
         return ProxyResultBase::CreateSuccessResult($lastResponse);
     } catch (\OAuthException $except) {
         $lastResponse = json_decode($except->lastResponse);
         $errors = $lastResponse->messages->error;
         if (!is_array($errors)) {
             $errors = array($errors);
         }
         return ProxyResultBase::CreateErrorResult($errors, $except->getMessage());
     }
 }