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

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

    list($code, $updatedOrder) = $this->httpClient->put("/orders/{$id}", $attributes, $options);
    return $updatedOrder;
  }
public function update ( $ id , array $ order , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ order , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ updatedOrder ) = $ this -> httpClient -> put ( "/orders/{$id}" , $ attributes , $ options ) ; return $ updatedOrder ; }
Update an order

put '/orders/{id}'

Updates order information
If the specified order does not exist, the request will return an error

@param integer $id Unique identifier of a Order
@param array $order 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 an order