[WIP] Use 'service' UserInfo w/ partymgmt calls

This commit is contained in:
Andrey Mayorov 2018-06-20 16:20:19 +03:00
parent 1ae8915a9e
commit 9b731e05dc

View File

@ -243,13 +243,10 @@ construct_wallet_changeset(ContractID, WalletID, #{
].
construct_userinfo() ->
#{id := ID, realm := Realm} = ff_woody_ctx:get_user_identity(),
#payproc_UserInfo{id = ID, type = construct_usertype(Realm)}.
#payproc_UserInfo{id = <<"fistful">>, type = construct_usertype()}.
construct_usertype(<<"external">>) ->
{external_user, #payproc_ExternalUser{}};
construct_usertype(<<"internal">>) ->
{internal_user, #payproc_InternalUser{}}.
construct_usertype() ->
{service_user, #payproc_ServiceUser{}}.
%% Woody stuff