anchor.diff:  		_Num ->
   			#{bucket_type => BucketType, reservations => Reservations}
   	end,
  -	#bucket{id = Id, name = Name, start_date = StartDate, end_date = EndDate,
  -			status = Status, remain_amount = RA, attributes = Attributes,
  -			units = Units, prices = Prices, product = Product,
  -			last_modified = {TS, N}}.
  +	Bucket#bucket{attributes = Attributes, last_modified = {TS, N}}.
   
   %%----------------------------------------------------------------------
   %%  internal functions
  
positive.code: %% export the ocs private API
  -export([normalize/1, subscription/4, end_period/2]).
  -export([import/2, find_sn_network/2]).
  -export([parse_buckets/1]).
  
  -export_type([eap_method/0, match/0]).
  
  
negative.code: 	end,
  	lists:any(F, Services).
  
  %% @hidden
  reservation_key(1) ->
  	ts;
  reservation_key(2) ->
  	debit;
  reservation_key(3) ->
  	reserve;
  reservation_key(4) ->
  	service_id;
  reservation_key(5) ->
  	charging_key.
  
  