FF-206: Fix identity stat provider being an integer (#302)

This commit is contained in:
Alexey 2020-09-11 15:49:21 +03:00 committed by GitHub
parent 339af623fa
commit fec3991bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -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).

View File

@ -205,7 +205,7 @@
id = ?STRING,
name = ?STRING,
created_at = ?TIMESTAMP,
provider = ?INTEGER,
provider = ?STRING,
identity_class = ?STRING,
identity_level = ?STRING,
effective_challenge = ?STRING,

View File

@ -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",