public function update($countryId, Province &$province)
    {
        $data = $province->exportData();
        $endpoint = '/admin/countries/'.$countryId.'/provinces/'.$province->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'province' => $data
            )
        );
        $province->setData($response['province']);
    }
public function update($countryId, Province &$province)
    {
        $data = $province->exportData();
        $endpoint = '/admin/countries/'.$countryId.'/provinces/'.$province->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'province' => $data
            )
        );
        $province->setData($response['province']);
    }
public function update ( $ countryId , Province & $ province ) { $ data = $ province -> exportData ( ) ; $ endpoint = '/admin/countries/' . $ countryId . '/provinces/' . $ province -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'province' => $ data ) ) ; $ province -> setData ( $ response [ 'province' ] ) ; }
Modify an existing province

@link   https://help.shopify.com/api/reference/province#update
@param  Province $province
@return void
Modify an existing province