original_string: public function close(Order &$order)
      {
          $data = $order->exportData();
          $endpoint= '/admin/orders/'.$order->id.'/close.json';
          $response = $this->request($endpoint, 'POST');
          $order->setData($response['order']);
      }
code: public function close(Order &$order)
      {
          $data = $order->exportData();
          $endpoint= '/admin/orders/'.$order->id.'/close.json';
          $response = $this->request($endpoint, 'POST');
          $order->setData($response['order']);
      }
code_tokens: public function close ( Order & $ order ) { $ data = $ order -> exportData ( ) ; $ endpoint = '/admin/orders/' . $ order -> id . '/close.json' ; $ response = $ this -> request ( $ endpoint , 'POST' ) ; $ order -> setData ( $ response [ 'order' ] ) ; }
docstring: Close an Order
  
  @link   https://help.shopify.com/api/reference/order#close
  @param  Order $order
  @return void
docstring_tokens: Close an Order