public function updateFilter($id, $counterId, Models\Filter $filter)
    {
        $resource = 'counter/' . $counterId . '/filter/' . $id;
        $response = $this->sendPutRequest($resource, ["filter" => $filter->toArray()]);
        $filterResponse = new Models\UpdateFilterResponse($response);
        return $filterResponse->getFilter();
    }