From d2207e7e7a5f884ab05eb631a423a9ffaefc0eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Mon, 29 Jan 2024 15:03:36 +0300 Subject: [PATCH] Revert "TD-844: Add deposit desc (#28)" This reverts commit dcdb085febb12752593a73d6f41aa19ac7273bfe. --- rebar.config | 4 ++-- rebar.lock | 2 +- src/wapi_stat_backend.erl | 3 +-- test/wapi_wallet_dummy_data.hrl | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/rebar.config b/rebar.config index 0ad0a4f..6eddb25 100644 --- a/rebar.config +++ b/rebar.config @@ -78,8 +78,8 @@ {test, [ {deps, [ %% Libraries generated with swagger-codegen-erlang from valitydev/swag-wallets - {swag_server_wallet, {git, "https://github.com/valitydev/swag-wallets", {ref, "efcf8ae"}}}, - {swag_client_wallet, {git, "https://github.com/valitydev/swag-wallets", {ref, "b3f8e8f"}}}, + {swag_server_wallet, {git, "https://github.com/valitydev/swag-wallets", {ref, "5e5e8da"}}}, + {swag_client_wallet, {git, "https://github.com/valitydev/swag-wallets", {ref, "e22798e"}}}, {meck, "0.9.2"} ]}, {cover_enabled, true}, diff --git a/rebar.lock b/rebar.lock index 5163e19..dccc877 100644 --- a/rebar.lock +++ b/rebar.lock @@ -37,7 +37,7 @@ 0}, {<<"fistful_proto">>, {git,"https://github.com/valitydev/fistful-proto.git", - {ref,"f2ca9b5225956a6bd9e1b3f84157f52c884fdb36"}}, + {ref,"c9c3aa00f075ecf774c2befc57284aeffbeea1fe"}}, 0}, {<<"fistful_reporter_proto">>, {git,"https://github.com/valitydev/fistful-reporter-proto.git", diff --git a/src/wapi_stat_backend.erl b/src/wapi_stat_backend.erl index cba8e92..2e9acb2 100644 --- a/src/wapi_stat_backend.erl +++ b/src/wapi_stat_backend.erl @@ -238,8 +238,7 @@ unmarshal_response(deposits, Response) -> Response#stat_StatDeposit.fee, Response#stat_StatDeposit.currency_symbolic_code ), - <<"revertStatus">> => unmarshal_revert_status(Response#stat_StatDeposit.revert_status), - <<"desc">> => Response#stat_StatDeposit.description + <<"revertStatus">> => unmarshal_revert_status(Response#stat_StatDeposit.revert_status) }, unmarshal_deposit_stat_status(Response#stat_StatDeposit.status) ); diff --git a/test/wapi_wallet_dummy_data.hrl b/test/wapi_wallet_dummy_data.hrl index 505c7fb..c66318f 100644 --- a/test/wapi_wallet_dummy_data.hrl +++ b/test/wapi_wallet_dummy_data.hrl @@ -292,8 +292,7 @@ amount = ?INTEGER, fee = ?INTEGER, currency_symbolic_code = ?RUB, - status = {pending, #stat_DepositPending{}}, - description = ?STRING + status = {pending, #stat_DepositPending{}} } ]} ).