diff --git a/apps/capi/test/capi_tests_real_SUITE.erl b/apps/capi/test/capi_tests_real_SUITE.erl index a9728ca..3cde2bf 100644 --- a/apps/capi/test/capi_tests_real_SUITE.erl +++ b/apps/capi/test/capi_tests_real_SUITE.erl @@ -1095,17 +1095,12 @@ default_create_contract(Config) -> Context = ?config(context, Config), Request = #{ <<"contractor">> => #{ - <<"bankAccount">> => #{ - <<"account">> => <<"testAccount">>, - <<"bankName">> => <<"testBankName">>, - <<"bankPostAccount">> => <<"testBankPostAccount">>, - <<"bankBik">> => <<"testBankBik">> - }, + <<"bankAccount">> => default_bank_account(), <<"legalEntity">> => #{ <<"entityType">> => <<"RussianLegalEntity">>, <<"registeredName">> => <<"testRegisteredName">>, - <<"registeredNumber">> => <<"testRegisteredNumber">>, - <<"inn">> => <<"testInn">>, + <<"registeredNumber">> => <<"1234567890123">>, + <<"inn">> => <<"1234567890">>, <<"actualAddress">> => <<"testActualAddress">>, <<"postAddress">> => <<"testPostAddress">>, <<"representativePosition">> => <<"testRepresentativePosition">>, @@ -1116,12 +1111,7 @@ default_create_contract(Config) -> <<"payoutToolParams">> => #{ <<"currency">> => <<"RUB">>, <<"payoutToolType">> => <<"PayoutToolBankAccount">>, - <<"bankAccount">> => #{ - <<"account">> => <<"testAccount">>, - <<"bankName">> => <<"testBankName">>, - <<"bankPostAccount">> => <<"testBankPostAccount">>, - <<"bankBik">> => <<"testBankBik">> - } + <<"bankAccount">> => default_bank_account() } }, Params = #{body => Request}, @@ -1181,18 +1171,21 @@ default_create_payout_tool(ContractID, Config) -> body => #{ <<"currency">> => <<"RUB">>, <<"payoutToolType">> => <<"PayoutToolBankAccount">>, - <<"bankAccount">> => #{ - <<"account">> => <<"testAccount">>, - <<"bankName">> => <<"testBankName">>, - <<"bankPostAccount">> => <<"testBankPostAccount">>, - <<"bankBik">> => <<"testBankBik">> - } + <<"bankAccount">> => default_bank_account() } }, {Host, Port, PreparedParams} = api_client_lib:make_request(Context, Params), Response = swagger_payouts_api:create_payout_tool(Host, Port, PreparedParams), handle_response(Response). +default_bank_account() -> + #{ + <<"account">> => <<"12345678901234567890">>, + <<"bankName">> => <<"testBankName">>, + <<"bankPostAccount">> => <<"12345678901234567890">>, + <<"bankBik">> => <<"123456789">> + }. + get_payout_tools(ContractID, Config) -> Context = ?config(context, Config), Params = #{ diff --git a/schemes/swag b/schemes/swag index c36fe0a..19713fc 160000 --- a/schemes/swag +++ b/schemes/swag @@ -1 +1 @@ -Subproject commit c36fe0a3c48371f64fedf0cb7d6947e09acf57a3 +Subproject commit 19713fc4643b4b4581f1e5fb7132975de8a6842f