wapi-lib/apps/wapi/test/wapi_wallet_dummy_data.hrl

406 lines
11 KiB
Erlang
Raw Normal View History

2019-02-21 14:34:37 +00:00
-define(STRING, <<"TEST">>).
-define(RUB, <<"RUB">>).
-define(USD, <<"USD">>).
-define(BANKID_RU, <<"PUTIN">>).
-define(BANKID_US, <<"TRAMP">>).
-define(WALLET_TOOL, <<"TOOL">>).
Update from fistful master (#4) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fixed after merge * fixed * added missed error case * fixed Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2020-11-11 17:09:42 +00:00
-define(RESIDENCE_RUS, <<"RUS">>).
-define(RESIDENCE_DEU, <<"DEU">>).
2019-02-21 14:34:37 +00:00
-define(JSON, <<"{}">>).
-define(INTEGER, 10000).
-define(INTEGER_BINARY, <<"10000">>).
-define(TIMESTAMP, <<"2016-03-22T06:12:27Z">>).
-define(DEFAULT_CONTEXT(PartyID), #{
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
<<"com.rbkmoney.wapi">> =>
{obj, #{
{str, <<"owner">>} => {str, PartyID},
{str, <<"name">>} => {str, ?STRING},
{str, <<"metadata">>} => {obj, #{{str, <<"somedata">>} => {str, ?STRING}}}
}}
}).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(BOOLEAN, true).
-define(TEST_USER_REALM, <<"external">>).
-define(TEST_RULESET_ID, <<"test/api">>).
2019-02-21 14:34:37 +00:00
-define(DEFAULT_CONTEXT_NO_NAME(PartyID), #{
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
<<"com.rbkmoney.wapi">> =>
{obj, #{
{str, <<"owner">>} => {str, PartyID},
{str, <<"metadata">>} => {obj, #{{str, <<"somedata">>} => {str, ?STRING}}}
}}
}).
-define(DEFAULT_METADATA(), #{<<"somedata">> => {str, ?STRING}}).
2019-02-21 14:34:37 +00:00
-define(CASH, #'Cash'{
amount = ?INTEGER,
currency = #'CurrencyRef'{
symbolic_code = ?RUB
}
}).
Update from fistful master (#4) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fixed after merge * fixed * added missed error case * fixed Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2020-11-11 17:09:42 +00:00
-define(IDENTITY_CLASS, #'provider_IdentityClass'{
id = ?STRING,
name = ?STRING
}).
-define(PROVIDER, #provider_Provider{
id = ?STRING,
name = ?STRING,
residences = [?RESIDENCE_RUS, ?RESIDENCE_DEU]
Update from fistful master (#4) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fixed after merge * fixed * added missed error case * fixed Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2020-11-11 17:09:42 +00:00
}).
-define(GET_INTERNAL_ID_RESULT, {
'bender_GetInternalIDResult',
?STRING,
{obj, #{{str, <<"context_data">>} => {str, ?STRING}}},
undefined
}).
2020-09-03 16:13:58 +00:00
-define(GENERATE_ID_RESULT, {
'bender_GenerationResult',
?STRING,
undefined,
undefined
}).
-define(WITHDRAWAL_STATUS, {pending, #wthd_status_Pending{}}).
-define(WITHDRAWAL(PartyID), #wthd_WithdrawalState{
id = ?STRING,
wallet_id = ?STRING,
destination_id = ?STRING,
body = ?CASH,
external_id = ?STRING,
status = ?WITHDRAWAL_STATUS,
created_at = ?TIMESTAMP,
effective_final_cash_flow = #cashflow_FinalCashFlow{postings = []},
sessions = [],
adjustments = [],
metadata = ?DEFAULT_METADATA(),
context = ?DEFAULT_CONTEXT(PartyID)
}).
-define(WITHDRAWAL_QUOTE, #wthd_Quote{
cash_from = ?CASH,
cash_to = ?CASH,
created_at = ?TIMESTAMP,
expires_on = ?TIMESTAMP,
operation_timestamp = ?TIMESTAMP,
domain_revision = 123,
party_revision = 123,
route = #wthd_Route{
provider_id = 123,
terminal_id = 123
},
quote_data = {str, ?STRING}
}).
-define(WITHDRAWAL_EVENT(Change), #wthd_Event{
change = Change,
occured_at = ?TIMESTAMP,
event_id = ?INTEGER
}).
-define(WITHDRAWAL_STATUS_CHANGE, {status_changed, #wthd_StatusChange{status = {pending, #wthd_status_Pending{}}}}).
2019-02-21 14:34:37 +00:00
-define(BLOCKING, unblocked).
-define(ACCOUNT, #account_Account{
id = ?STRING,
identity = ?STRING,
currency = #'CurrencyRef'{
symbolic_code = ?RUB
},
accounter_account_id = ?INTEGER
}).
-define(ACCOUNT_BALANCE, #account_AccountBalance{
id = ?STRING,
currency = #'CurrencyRef'{
symbolic_code = ?RUB
},
expected_min = ?INTEGER,
current = ?INTEGER,
expected_max = ?INTEGER
}).
-define(BANK_CARD, #'BankCard'{
bin_data_id = {i, ?INTEGER},
token = ?STRING,
bin = <<"424242">>,
masked_pan = <<"4242">>,
bank_name = ?STRING,
payment_system_deprecated = visa,
issuer_country = rus,
card_type = debit
}).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(BANK_CARD_PAN(Pan), ?BANK_CARD#'BankCard'{
bin = ?BIN(Pan),
masked_pan = ?LAST_DIGITS(Pan)
}).
-define(RESOURCE_BANK_CARD,
{bank_card, #'ResourceBankCard'{
bank_card = ?BANK_CARD
}}
).
-define(RESOURCE, {bank_card, ?BANK_CARD}).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(BIN(CardNumber), string:slice(CardNumber, 0, 6)).
-define(LAST_DIGITS(CardNumber), string:slice(CardNumber, 12)).
-define(DESTINATION_STATUS, {authorized, #dst_Authorized{}}).
-define(DESTINATION(PartyID), #dst_DestinationState{
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
id = ?STRING,
name = ?STRING,
status = ?DESTINATION_STATUS,
account = ?ACCOUNT,
resource = ?RESOURCE_BANK_CARD,
external_id = ?STRING,
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
created_at = ?TIMESTAMP,
context = ?DEFAULT_CONTEXT(PartyID)
}).
-define(WALLET(PartyID), #wlt_WalletState{
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
id = ?STRING,
name = ?STRING,
blocking = ?BLOCKING,
account = ?ACCOUNT,
external_id = ?STRING,
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
created_at = ?TIMESTAMP,
metadata = ?DEFAULT_METADATA(),
context = ?DEFAULT_CONTEXT(PartyID)
}).
-define(IDENTITY(PartyID),
?IDENTITY(PartyID, ?DEFAULT_CONTEXT(PartyID))
).
-define(IDENTITY(PartyID, Context), #idnt_IdentityState{
id = ?STRING,
name = ?STRING,
party_id = ?STRING,
provider_id = ?STRING,
contract_id = ?STRING,
metadata = ?DEFAULT_METADATA(),
context = Context
}).
-define(STAT_INVALID_EXCEPTION(Errors), #fistfulstat_InvalidRequest{errors = Errors}).
-define(STAT_BADTOKEN_EXCEPTION, #fistfulstat_BadToken{reason = ?STRING}).
-define(STAT_RESPONCE(Data), #fistfulstat_StatResponse{data = Data}).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(STAT_WALLETS,
{wallets, [
#fistfulstat_StatWallet{
id = ?STRING,
identity_id = ?STRING,
name = ?STRING,
created_at = ?TIMESTAMP,
currency_symbolic_code = ?RUB
}
]}
).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(STAT_WITHDRAWALS,
{withdrawals, [
#fistfulstat_StatWithdrawal{
id = ?STRING,
created_at = ?TIMESTAMP,
identity_id = ?STRING,
source_id = ?STRING,
destination_id = ?STRING,
external_id = ?STRING,
amount = ?INTEGER,
fee = ?INTEGER,
currency_symbolic_code = ?RUB,
status = {pending, #fistfulstat_WithdrawalPending{}}
}
]}
).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(STAT_DEPOSITS,
{deposits, [
#fistfulstat_StatDeposit{
id = ?STRING,
created_at = ?TIMESTAMP,
identity_id = ?STRING,
source_id = ?STRING,
destination_id = ?STRING,
amount = ?INTEGER,
fee = ?INTEGER,
currency_symbolic_code = ?RUB,
status = {pending, #fistfulstat_DepositPending{}}
}
]}
).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(STAT_DESTINATIONS,
{destinations, [
#fistfulstat_StatDestination{
id = ?STRING,
name = ?STRING,
created_at = ?TIMESTAMP,
is_blocked = ?BOOLEAN,
identity = ?STRING,
currency_symbolic_code = ?RUB,
resource = ?RESOURCE,
external_id = ?STRING,
status = {unauthorized, #fistfulstat_Unauthorized{}}
}
]}
).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(STAT_IDENTITIES,
{identities, [
#fistfulstat_StatIdentity{
id = ?STRING,
name = ?STRING,
created_at = ?TIMESTAMP,
provider = ?STRING,
identity_class = ?STRING,
identity_level = ?STRING,
effective_challenge = ?STRING,
is_blocked = ?BOOLEAN,
external_id = ?STRING
}
]}
).
2021-04-06 14:13:35 +00:00
-define(STAT_DEPOSIT_REVERTS,
{deposit_reverts, [
#fistfulstat_StatDepositRevert{
id = ?STRING,
wallet_id = ?STRING,
source_id = ?STRING,
status = {succeeded, #fistfulstat_DepositRevertSucceeded{}},
body = ?CASH,
created_at = ?TIMESTAMP,
domain_revision = ?INTEGER,
party_revision = ?INTEGER,
reason = ?STRING,
external_id = ?STRING,
deposit_id = ?STRING
}
]}
).
-define(STAT_DEPOSIT_ADJUSTMENTS_WO_CANGES_PLAN,
?STAT_DEPOSIT_ADJUSTMENTS(#fistfulstat_DepositAdjustmentChangesPlan{})
).
-define(STAT_DEPOSIT_ADJUSTMENTS_WITH_CANGES_PLAN,
?STAT_DEPOSIT_ADJUSTMENTS(
#fistfulstat_DepositAdjustmentChangesPlan{
new_cash = #fistfulstat_DepositAdjustmentCashChangePlan{amount = ?CASH, fee = ?CASH, provider_fee = ?CASH},
new_status = #fistfulstat_DepositAdjustmentStatusChangePlan{
new_status = {succeeded, #fistfulstat_DepositAdjustmentStatusChangePlanSucceeded{}}
}
}
)
).
-define(STAT_DEPOSIT_ADJUSTMENTS(ChangesPlan),
{deposit_adjustments, [
#fistfulstat_StatDepositAdjustment{
id = ?STRING,
status = {succeeded, #fistfulstat_DepositAdjustmentSucceeded{}},
changes_plan = ChangesPlan,
created_at = ?TIMESTAMP,
domain_revision = ?INTEGER,
party_revision = ?INTEGER,
external_id = ?STRING,
operation_timestamp = ?TIMESTAMP,
deposit_id = ?STRING
}
]}
).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(IDENT_DOC,
{russian_domestic_passport, #'identdocstore_RussianDomesticPassport'{
issuer = ?STRING,
issuer_code = ?STRING,
issued_at = ?TIMESTAMP,
birth_date = ?TIMESTAMP,
birth_place = ?STRING,
series = ?STRING,
number = ?STRING,
first_name = ?STRING,
family_name = ?STRING,
patronymic = ?STRING
}}
).
2019-02-21 14:34:37 +00:00
-define(REPORT_ID, ?INTEGER).
-define(REPORT_EXT(Status, FilesList), #ff_reports_Report{
report_id = ?INTEGER,
time_range = #ff_reports_ReportTimeRange{
from_time = ?TIMESTAMP,
to_time = ?TIMESTAMP
},
created_at = ?TIMESTAMP,
report_type = <<"withdrawalRegistry">>,
status = Status,
file_data_ids = FilesList
}).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(REPORT_WITH_STATUS(Status), ?REPORT_EXT(Status, [?STRING, ?STRING, ?STRING])).
2019-02-21 14:34:37 +00:00
-define(REPORT, ?REPORT_WITH_STATUS(created)).
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
-define(WITHDRAWAL_EVENT_FILTER, #webhooker_EventFilter{
types = ordsets:from_list([
{withdrawal, {started, #webhooker_WithdrawalStarted{}}},
{withdrawal, {succeeded, #webhooker_WithdrawalSucceeded{}}},
{withdrawal, {failed, #webhooker_WithdrawalFailed{}}}
])
}).
-define(DESTINATION_EVENT_FILTER, #webhooker_EventFilter{
types = ordsets:from_list([
{destination, {created, #webhooker_DestinationCreated{}}},
{destination, {unauthorized, #webhooker_DestinationUnauthorized{}}},
{destination, {authorized, #webhooker_DestinationAuthorized{}}}
])
}).
-define(WEBHOOK_WITH_WALLET(EventFilter, WalletID), #webhooker_Webhook{
id = ?INTEGER,
identity_id = ?STRING,
wallet_id = WalletID,
event_filter = EventFilter,
url = ?STRING,
pub_key = ?STRING,
enabled = false
}).
-define(WEBHOOK(EventFilter), ?WEBHOOK_WITH_WALLET(EventFilter, undefined)).
2020-09-03 16:13:58 +00:00
-define(W2W_TRANSFER(PartyID), #w2w_transfer_W2WTransferState{
id = ?STRING,
wallet_from_id = ?STRING,
wallet_to_id = ?STRING,
body = ?CASH,
created_at = ?TIMESTAMP,
domain_revision = ?INTEGER,
party_revision = ?INTEGER,
status = {pending, #w2w_status_Pending{}},
external_id = ?STRING,
Update from fistful master (#5) * FF-234: wapi withdrawal tests (#317) * add tests, 3 tests not works, it's save commit * not work, save commit * add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions * fixes * fix specs * add functions-helpers to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-231: wapi wallet test (#318) * add test functions, fix wapi wallet backend * add helper functions to reduce code size Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * + wapi identity common test (#310) * + wapi identity common test * fix lint * fix lint * add test helper functions * fix context issue (return ct_helper_cfg call to call_api call) * fix function name Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * FF-225: Refactor provider api (#316) * added provider backend * added provider service * refactored wapi, added tests * fixed * FF-229: wapi destination tests (#319) * add a few tests * add tests * add helper functions to reduce code size * delete useless copy-paste test functions * rework tests Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * Update bender (#320) * FF-233: wapi w2w test (#321) * add test, only one test works, save commit * add tests, some tests doesn't works, save commit * rest of tests done, fix w2w backend/thrift_handler * add test helpers to reduce code size * fix Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> * add tests, fix backend/handler (#323) y.beliakov <y.beliakov@rbkmoney.com> * FF-207: transaction_bound event on withdrawal session (#315) * MSPF-579: Prometheus metrics (#325) * Add prometheus to deps, update lockfile * Update build images * Add metrics route * Provide sample prometheus config * Update build_utils * Inmplement map_error from new codegen * Revert "Inmplement map_error from new codegen" This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b. * Revert "Update build images" This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f. * Revert "Update build_utils" This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c. * FF-226: Withdrawal session finish notification (#314) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) * bump fistful_proto * p2psession GetEvents support * meck * Revert "FF-226: Withdrawal session finish notification (#314)" (#329) This reverts commit 96186224def071accad19708414e85ae8492e7a8. * FF-236: ff_transfer instrument disassemble (#324) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> * FF-226: Withdrawal session finish notification (1 part) (#330) * FF-226: Withdrawal session finish notification (2nd part) (#331) * FF-226: Withdrawal session finish notification (3rd part) (#332) * MSPG-615: Remove lazy party creation (#326) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly * +fix p2p_session service url (#333) * fix service url * fix authData on Sender thrift * drop get_default_termset on wapi_thift_SUITE * rename service w2w_transfer to fistful_w2w_transfer * rename service p2p_transfer to fistful_p2p_transfer * rename service p2p_session to fistful_p2p_session * sys.config service url examples * fix: Revert everything & add erts (#335) * Revert everything back to prometheus_metrics * Include erts * FF-226: Withdrawal session finish notification (1 part) (#337) * FF-226: Fix for failing machines in part 1 (#338) * FF-236: ff_transfer instrument disassemble (cherry pick from revert) * first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls * fix source/destination external calls * fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc * fix * fixes * fix todo-comments * fixes * fix migration to version_1 * fixes Co-authored-by: Sergey Yelin <elinsn@gmail.com> (cherry picked from commit d2336c26b2acf3577507c9addd0507e572718b8b) * FF-226: Withdrawal session finish notification (2nd part) (again) (#342) * FF-226: Withdrawal session finish notification (3rd part) (again) (#343) * FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) * MSPG-615: Remove lazy party creation (#326) (#341) * Disable lazy party creation * Add new return type to function spec * Upgrade fistful_proto * Throw PartyNotFound error if nessesary * Test that lazy party creation doesn't work anymore * Uncomment tests * Pass Context directly (cherry picked from commit bfc88dcb378a66f69f86121b309bb5fa3566b07b) * erlfrm code formatter (#347) * 473: migrate to Alpine (#346) * Add uzcard (#350) * Add uzcard * Increase back decreased timeout to ensure test success * Upgrade services (#348) * Upgrade services * Upgrade more services * bump damsel with yandexpay (#352) * FF-237: update lechiffre (part1) (#344) * update lechiffre * drop support base64 resource tokens * naive idempotent support * quoteToken code refactoring * fix metadata error p2p_transfer Co-authored-by: Артем <WWW_cool@inbox.ru> * +remove debug message (#355) * FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) * FF-237: ResourceToken expiration (#356) * FF-237: bump wapi-pcidss (#358) * upgrade world (#360) * compose: bump images (#362) * bump proxy-mocketbank * bump binbase * Upgrade kds (#363) * fixed after merge * formated * removed old deps * fixed * fixed * returned to old uac Co-authored-by: George Belyakov <8051393+georgemadskillz@users.noreply.github.com> Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: dinama <dinama@users.noreply.github.com> Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com> Co-authored-by: Alexey <kehitt@users.noreply.github.com>
2021-02-01 15:13:51 +00:00
metadata = ?DEFAULT_METADATA(),
2020-09-03 16:13:58 +00:00
context = ?DEFAULT_CONTEXT(PartyID),
effective_final_cash_flow = #cashflow_FinalCashFlow{
postings = []
},
adjustments = []
}).
-define(FEES, #'Fees'{fees = #{operation_amount => ?CASH}}).