anchor.diff:  %% @hidden
   query_start({M, F, A}, Codec, Query, Filters, RangeStart, RangeEnd) ->
   	case supervisor:start_child(ocs_rest_pagination_sup,
  -				[[M, F, A]]) of
  +				[M, F, A]) of
   		{ok, PageServer, Etag} ->
   			query_page(Codec, PageServer, Etag, Query, Filters, RangeStart, RangeEnd);
   		{error, _Reason} ->
  
positive.code: 			Body :: iolist()} | {error, ErrorCode :: integer()}.
  %% @doc Body producing function for `GET /ocs/v1/log/balance'
  %% requests.
  get_balance_log(Query, Headers) ->
  	try
  	{DateStart, DateEnd} = case lists:keyfind("date", 1, Query) of
  		{_, DateTime} when length(DateTime) > 3 ->
  			ocs_rest:range(DateTime);
                  false ->
                          {1, erlang:system_time(?MILLISECOND)}
          end,
  	case lists:keytake("filter", 1, Query) of
  		{value, {_, String}, Query1} ->
  			{ok, Tokens, _} = ocs_rest_query_scanner:string(String),
  			case ocs_rest_query_parser:parse(Tokens) of
  				{ok, [{array, [{complex, Complex}]}]} ->
  					MatchType = match("type", Complex, Query),
  					MatchSubscriber = match("subscriber", Complex, Query),
  					MatchBucket = match("subscriber", Complex, Query),
  					MatchUnits = match("units", Complex, Query),
  					MatchProducts = match("procucts", Complex, Query),
  					{Query1, [DateStart, DateEnd, MatchType, MatchSubscriber, MatchBucket, MatchUnits, MatchProducts]}
  			end;
  		false ->
  			MatchType = match("type", [], Query),
  			MatchSubscriber = match("subscriber", [], Query),
  			MatchBucket = match("subscriber", [], Query),
  			MatchUnits = match("units", [], Query),
  			MatchProducts = match("procucts", [], Query),
  			{Query, [DateStart, DateEnd, MatchType, MatchSubscriber, MatchBucket, MatchUnits, MatchProducts]}
  	end
  	of
                 {Query2, Args} ->
                         Codec = fun abmfs/2,
                         query_filter({ocs_log, abmf_query, Args}, Codec, Query2, Headers)
  	catch
                 _ ->
                         {error, 400}
  	end.
  
  -spec get_bucket(BucketId) -> Result
  
negative.code: 			end
  	end.
  
  %% @hidden
  match_abmf(Key, Complex, _Query) ->
  	case lists:keyfind(Key, 1, Complex) of
  		{Obj, like, [Value]} ->
  			[{list_to_atom(Obj), {like, [Value]}}];
  		{Obj1, exact, Value} when Obj1 == "type" ->
  			[{type, {exact, list_to_atom(Value)}}];
  		{Obj1, exact, Value} ->
  			[{list_to_atom(Obj1), {exact, Value}}];
  		false ->
  			'_'
  	end.
  
  