anchor.diff:  -module(ocs_rating).
   -copyright('Copyright (c) 2016 - 2017 SigScale Global Inc.').
   
  --export([rating/5]).
  --export([remove_session/2]).
  --export([reserve_units/6]).
  -
   -export([rate/4, rate/5]).
   -export([charge/4]).
   
  
positive.code: %% support deprecated_time_unit()
  -define(MILLISECOND, milli_seconds).
  %-define(MILLISECOND, millisecond).
  
  -define(initial, 1).
  -define(update, 2).
  -define(terminate, 3).
  
  -spec rate(SubscriberID, Flag, DebitAmount, ReserveAmount) -> Result
  	when
  
negative.code: 			{grant, Entry, ReserveAmount}
  	end.
  
  %%----------------------------------------------------------------------
  %%  internal functions
  %%----------------------------------------------------------------------
  