lib/LossReasonsService.php
public function update($id, array $lossReason, array $options = array())
  {
    $attributes = array_intersect_key($lossReason, array_flip(self::$keysToPersist));

    list($code, $updatedLossReason) = $this->httpClient->put("/loss_reasons/{$id}", $attributes, $options);
    return $updatedLossReason;
  }
public function update($id, array $lossReason, array $options = array())
  {
    $attributes = array_intersect_key($lossReason, array_flip(self::$keysToPersist));

    list($code, $updatedLossReason) = $this->httpClient->put("/loss_reasons/{$id}", $attributes, $options);
    return $updatedLossReason;
  }
public function update ( $ id , array $ lossReason , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ lossReason , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ updatedLossReason ) = $ this -> httpClient -> put ( "/loss_reasons/{$id}" , $ attributes , $ options ) ; return $ updatedLossReason ; }
Update a loss reason

put '/loss_reasons/{id}'

Updates a loss reason information
If the specified loss reason does not exist, the request will return an error
<figure class="notice">
If you want to update loss reason you **must** make sure name of the reason is unique
</figure>

@param integer $id Unique identifier of a LossReason
@param array $lossReason This array's attributes describe the object to be updated.
@param array $options Additional request's options.

@return array The resulting object representing updated resource.
Update a loss reason