Add lookup interface in hz
This commit is contained in:
parent
aeb78eab38
commit
4ee6609111
11
src/hz.erl
11
src/hz.erl
@ -67,6 +67,7 @@
|
||||
prepare_contract/1,
|
||||
prepare_aaci/1,
|
||||
cache_aaci/2,
|
||||
lookup_aaci/1,
|
||||
aaci_lookup_spec/2,
|
||||
contract_call/5,
|
||||
contract_call/6,
|
||||
@ -2221,6 +2222,16 @@ cache_aaci(Label, AACI) ->
|
||||
hz_man:cache_aaci(Label, AACI).
|
||||
|
||||
|
||||
-spec lookup_aaci(Label) -> Result
|
||||
when Label :: term(),
|
||||
Result :: {ok, aaci()} | error.
|
||||
%% @doc
|
||||
%% Retrieve a previously prepared and cached AACI.
|
||||
|
||||
lookup_aaci(Label) ->
|
||||
hz_man:lookup_aaci(Label).
|
||||
|
||||
|
||||
-spec aaci_lookup_spec(AACI, Fun) -> {ok, Type} | {error, Reason}
|
||||
when AACI :: aaci(),
|
||||
Fun :: binary() | string(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user