public function close(Order &$order)
    {
        $data = $order->exportData();
        $endpoint= '/admin/orders/'.$order->id.'/close.json';
        $response = $this->request($endpoint, 'POST');
        $order->setData($response['order']);
    }
public function close(Order &$order)
    {
        $data = $order->exportData();
        $endpoint= '/admin/orders/'.$order->id.'/close.json';
        $response = $this->request($endpoint, 'POST');
        $order->setData($response['order']);
    }
public function close ( Order & $ order ) { $ data = $ order -> exportData ( ) ; $ endpoint = '/admin/orders/' . $ order -> id . '/close.json' ; $ response = $ this -> request ( $ endpoint , 'POST' ) ; $ order -> setData ( $ response [ 'order' ] ) ; }
Close an Order

@link   https://help.shopify.com/api/reference/order#close
@param  Order $order
@return void
Close an Order