anchor.diff:  bucket1([_ | T], B, Acc) ->
   	bucket1(T, B, Acc);
   bucket1([], _B, Acc) ->
  -	{struct, Acc}.
  -
  +	{struct, lists:reverse(Acc)}.
  +
  
positive.code: bucket1([id | T], #bucket{id = undefined} = B, Acc) ->
  	bucket1(T, B, Acc);
  bucket1([id | T], #bucket{id = ID} = B, Acc) ->
  	bucket1(T, B, [{"id", ID} | Acc]);
  bucket1([name | T], #bucket{name = undefined} = B, Acc) ->
  	bucket1(T, B, Acc);
  bucket1([name | T], #bucket{name = Name} = B, Acc) ->
  	bucket1(T, B, [{"name", Name} | Acc]);
  bucket1([remain_amount | T], #bucket{remain_amount = undefined} = B, Acc) ->
  	bucket1(T, B, Acc);
  bucket1([remain_amount | T], #bucket{remain_amount = RemainAmount} = B, Acc)
  		when is_integer(RemainAmount) ->
  	RM = {"remainAmount", {struct, [{"amount", RemainAmount}]}},
  	bucket1(T, B, [RM | Acc]);
  bucket1([start_date | T], #bucket{start_date = undefined,
  		termination_date = End} = B, Acc) when is_integer(End) ->
  	ValidFor = {struct, [{"endDateTime", ocs_rest:iso8601(End)}]},
  
negative.code: 		Identity :: list(),
  		Result :: {ok, Headers :: [tuple()], Body :: iolist()}
  				| {error, ErrorCode :: integer()}.
  %% @doc Body producing function for `GET /balanceManagment/v1/product/{id}/bucket'
  %% reuqest
  get_balance(Identity) ->
  	try
  		case ocs:find_subscriber(Identity) of
  			{ok, #subscriber{buckets = Buckets}} ->
  				get_balance1(Identity, Buckets);
  			{error, not_found} ->
  				{error, 404};
  			{error, _Reason} ->
  				{error, 500}
  		end
  