public function update(Country &$country)
    {
        $data = $country->exportData();
        $endpoint = '/admin/countries/'.$country->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'country' => $data
            )
        );
        $country->setData($response['country']);
    }
public function update(Country &$country)
    {
        $data = $country->exportData();
        $endpoint = '/admin/countries/'.$country->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'country' => $data
            )
        );
        $country->setData($response['country']);
    }
public function update ( Country & $ country ) { $ data = $ country -> exportData ( ) ; $ endpoint = '/admin/countries/' . $ country -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'country' => $ data ) ) ; $ country -> setData ( $ response [ 'country' ] ) ; }
Update a country

@link   https://help.shopify.com/api/reference/country#update
@param  Country $country
@return void
Update a country