mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 02:35:18 +00:00
FF-206: Fix identity stat provider being an integer (#302)
This commit is contained in:
parent
339af623fa
commit
fec3991bcf
@ -222,7 +222,7 @@ unmarshal_response(identities, Response) ->
|
||||
<<"id">> => Response#fistfulstat_StatIdentity.id,
|
||||
<<"name">> => Response#fistfulstat_StatIdentity.name,
|
||||
<<"createdAt">> => Response#fistfulstat_StatIdentity.created_at,
|
||||
<<"provider">> => unmarshal_identity_stat_provider(Response#fistfulstat_StatIdentity.provider),
|
||||
<<"provider">> => Response#fistfulstat_StatIdentity.provider,
|
||||
<<"class">> => Response#fistfulstat_StatIdentity.identity_class,
|
||||
<<"level">> => Response#fistfulstat_StatIdentity.identity_level,
|
||||
<<"effectiveChallenge">> => Response#fistfulstat_StatIdentity.effective_challenge,
|
||||
@ -294,6 +294,3 @@ unmarshal_crypto_currency_name({ripple, _}) -> <<"Ripple">>;
|
||||
unmarshal_crypto_currency_name({ethereum, _}) -> <<"Ethereum">>;
|
||||
unmarshal_crypto_currency_name({usdt, _}) -> <<"USDT">>;
|
||||
unmarshal_crypto_currency_name({zcash, _}) -> <<"Zcash">>.
|
||||
|
||||
unmarshal_identity_stat_provider(Provider) ->
|
||||
genlib:to_binary(Provider).
|
||||
|
@ -205,7 +205,7 @@
|
||||
id = ?STRING,
|
||||
name = ?STRING,
|
||||
created_at = ?TIMESTAMP,
|
||||
provider = ?INTEGER,
|
||||
provider = ?STRING,
|
||||
identity_class = ?STRING,
|
||||
identity_level = ?STRING,
|
||||
effective_challenge = ?STRING,
|
||||
|
@ -67,7 +67,7 @@
|
||||
0},
|
||||
{<<"fistful_proto">>,
|
||||
{git,"git@github.com:rbkmoney/fistful-proto.git",
|
||||
{ref,"ec6de0dc3a123d1a9efa81b84be07e0a51732118"}},
|
||||
{ref,"9c8eb80e614b6ede6388f2ea7cbbdf8ce1915a9a"}},
|
||||
0},
|
||||
{<<"fistful_reporter_proto">>,
|
||||
{git,"git@github.com:rbkmoney/fistful-reporter-proto.git",
|
||||
|
Loading…
Reference in New Issue
Block a user