Commit Graph

103 Commits

Author SHA1 Message Date
Boris
2d251e3543
ED 318: Delete unused api. Identity identification: challenge, classes (#35) 2021-11-25 11:09:44 +03:00
Alexey S
7a760ce300
ED-288: Remove legacy auth (#33) 2021-11-24 15:43:38 +03:00
Alexey S
de8fca96d2
ED-288: Relax internal wapi auth (#30) 2021-11-08 11:10:58 +03:00
George Belyakov
f326fc91cb
ED-250: clean unused macro (#27)
* delete macro: [MD5, SHA256, TEST_PAYMENT_TOKEN, TERM_SET, PAYOUT_SERVICE_TERMS, PAYMENT_SERVICE_TERMS, SNAPSHOT, SWAG_HANDLER_SCOPE]
2021-09-27 11:22:07 +03:00
Boris
3e88ceb35a
delete P2P (#26) 2021-09-27 09:57:53 +03:00
dinama
e33217528d
ED-118: upgrade token keeper (#24) 2021-09-07 11:45:35 +03:00
Артем
110be44152
ED-118: Bouncer integration (#19)
* added bouncer context

* finished refactor wallet handler

* fixed build

* fixed dialyzer

* finished fixed dialyzer

* added fixes + setup tests

* fixed more errors

* fixed process return

* fixed auth wapi context

* setuped some suites

* fixed all tests

* fixed dialyzer

* formatted

* fixed linter

* fixed

* updated bouncer proto and client, fixed
2021-09-03 19:28:26 +03:00
George Belyakov
c02e251ae5
ED-105: flexible dicts (#18)
* bump fistful-proto

* payment_system => payment_system_deprecated

* bump damsel

* implement flexible dict "payment_system"

* fix email-validator issue

* update images

* add payment_system to destinations tests generate_resource

* Revert "add payment_system to destinations tests generate_resource"

This reverts commit 059fbe6f0e48d644c6db503d82f8c835116d3641.

* Revert "update images"

This reverts commit 3dbfecd44453034e52acb854ec5f5ea6b05ee602.

* Revert "fix email-validator issue"

This reverts commit 3a492ce8ea22c804f0c7e28646536470c9521a3d.

* Revert "implement flexible dict "payment_system""

This reverts commit d3e16547b2539436497afddb90d5c0a01b8e08cf.

* Revert "bump damsel"

This reverts commit 24c198d6a11090b485348a3939c8d46d2ea984bf.

* Revert "Revert "bump damsel""

This reverts commit 917a3dbbce0c761bc4309a9de6ec5adc36d2d637.

* Revert "Revert "implement flexible dict "payment_system"""

This reverts commit 468c8a2a7331457c03184f9b2e120de8cc83242a.

* Revert "Revert "fix email-validator issue""

This reverts commit e93b5bcea7f84864715cd4efa86664b8551e61f8.

* Revert "Revert "update images""

This reverts commit 36bcecdde434fe38a32b1abd2b3f99d954143ca4.

* Revert "Revert "add payment_system to destinations tests generate_resource""

This reverts commit 1f9830328f06ed56cbf2738a7e3fe1128cf6a134.

* fix edit mistake

* rework wapi_codec eunit test, remove unused iso_country_code

* fix space

* format

* remove debug logging
2021-07-15 13:20:13 +03:00
George Belyakov
c6dd27be2f
ED-170: add digital wallets, webmoney (#15)
* bump swag

* add digital_wallets/webmoney resource, add webmoney resource test, not work version - there are problems with swag bump

* bump build/base images

* update submodule schemes/swag

* return back old images

* fix copy-pasta mistake in resource unhmarshalling

* bump build and service images

* fix non-optimised clause

* bump schemes/swag submodules (fixed provider field required now)

* rework marshalling/unmarshalling in crypto/digital-wallets

* wapi stat backend unmarshalling

* update swag submodule

* revert provider field discriminator

* bump fistful-proto

* bump build image

* fix email-validator dependency issue

* return fistful-proto to master, update fistful-proto

* Revert "return fistful-proto to master, update fistful-proto"

This reverts commit 79c6405724849303b89ef6a79d82bff55fe1cda8.

* return fistful-proto master branch finally
2021-07-09 16:27:23 +03:00
George Belyakov
4538fdfed3
ED-170: fix for flexible dicts (#17)
* bump fistful-proto

* payment_system => payment_system_deprecated

* bump damsel

* implement flexible dict "payment_system"

* fix email-validator issue

* update images

* add payment_system to destinations tests generate_resource

* Revert "add payment_system to destinations tests generate_resource"

This reverts commit 059fbe6f0e48d644c6db503d82f8c835116d3641.

* Revert "update images"

This reverts commit 3dbfecd44453034e52acb854ec5f5ea6b05ee602.

* Revert "fix email-validator issue"

This reverts commit 3a492ce8ea22c804f0c7e28646536470c9521a3d.

* Revert "implement flexible dict "payment_system""

This reverts commit d3e16547b2539436497afddb90d5c0a01b8e08cf.

* Revert "bump damsel"

This reverts commit 24c198d6a11090b485348a3939c8d46d2ea984bf.
2021-07-09 15:17:16 +03:00
Артем
e6206e686b
ED-125: Add new handlers (#12) 2021-04-07 21:45:53 +03:00
dinama
72fb0032f1
ED-116: sync with fusful-server (#9) 2021-04-06 17:13:35 +03:00
Артем
36cd1ebb3a
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 18:13:51 +03:00
Артем
749f81636d
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 20:09:42 +03:00
WWW_cool
179116448e fixed 2020-10-07 15:37:50 +03:00
WWW_cool
81cae96a57 fixed to standalone 2020-10-07 15:08:25 +03:00
WWW_cool
444807c102 Merge remote-tracking branch 'origin/master' into fistful_master
# Conflicts:
#	apps/ff_cth/src/ct_helper.erl
#	apps/ff_server/src/ff_p2p_template_codec.erl
#	apps/ff_server/src/ff_p2p_template_handler.erl
#	apps/ff_server/src/ff_p2p_transfer_codec.erl
#	apps/ff_server/test/ff_p2p_transfer_handler_SUITE.erl
#	apps/fistful/src/ff_party.erl
#	apps/p2p/src/p2p_template_machine.erl
#	apps/wapi/src/wapi_p2p_quote.erl
#	apps/wapi/src/wapi_p2p_template_backend.erl
#	apps/wapi/src/wapi_wallet_ff_backend.erl
#	apps/wapi/src/wapi_wallet_thrift_handler.erl
#	apps/wapi/test/wapi_p2p_template_tests_SUITE.erl
#	apps/wapi/test/wapi_thrift_SUITE.erl
2020-10-07 13:45:17 +03:00
dinama
2d0c2776f8
FF-220: +p2p template quote&transfer via thrift backend (#308)
* FF-223: ff_p2p_template_handler quote&transfer methods
* FF-220: wapi_p2p_transfer_backend quote&transfer methods
* FF-230: 404 on quoteP2PTransferWithTemplate
* +fix p2p_transfer metadata serialization
2020-10-06 15:24:28 +03:00
Roman Pushkov
ebdd7e9a25
FF-218: p2p transfer via thrift (#301)
* update wapi access backend

* add p2p transfer service

* add p2p transfer dummy

* update test data

* fix typo

* add p2p transfer thrift handling

* add p2p transfer thrift test

* minor fix

* copy error handling

* add fixme

* type fixes

* macro refactor

* rename p2p transfer module, update errors

* update handler

* type fixes

* update dummy date

* add p2p transfer tests

* DRY

* update marshalling

* remove redundant test permissions

* rename errors

* update tests

* fix quote type

* add quote tests to p2p transfer

* add token errors to thrift handler

* add p2p transfer quote handling

* fix p2p transfer marshalling bug

* import do/unwrap

* add quote to test

* fix merge

* fix contract not found bug

* fix thrift test

* refactor p2p transfer backend

* fix whitespace

* add p2p quote dummy data

* update create p2p transfer tests, add quote test

* add p2p quote handler

* update p2p quote

* add p2p quote to backend

* use thrift in wapi p2p quote

* rework tests to use thrift quote

* rework ff backend to use thrift quote

* rework p2p transfer to use thrift quote

* fix codec

* minor fixes

* update ct payment system
2020-10-06 11:43:28 +03:00
WWW_cool
7f10b950c1 fixed 2020-09-25 11:37:50 +03:00
WWW_cool
b659e1491c updated from fistful master 2020-09-24 17:41:07 +03:00
WWW_cool
964510f58c Merge remote-tracking branch 'github/master' into FF-40/ft/wapi_in_new_repo
# Conflicts:
#	apps/ff_server/src/ff_destination_eventsink_publisher.erl
#	apps/ff_server/src/ff_identity_codec.erl
#	apps/ff_server/test/ff_identity_handler_SUITE.erl
#	apps/ff_transfer/src/ff_instrument.erl
#	apps/fistful/src/ff_identity.erl
#	apps/wapi/src/wapi_wallet_thrift_handler.erl
#	apps/wapi/src/wapi_webhook_backend.erl
#	apps/wapi/test/wapi_report_tests_SUITE.erl
2020-09-24 16:26:44 +03:00
Артем
b07d9cd906
FF-216: Refactor reports (#306)
* started to refactor reports

* refactored

* fixed dialyzer
2020-09-24 16:03:29 +03:00
Toporkov Igor
ad2dd3aca2
FF-217: Fix webhook marshaling (#307)
* Get WalletID from Scope, not WebhookBody

* Do not check wallet if it is undefined

* Unmarshal walletID to scope

* Test fixed marshaling/unmarshaling
2020-09-22 19:14:39 +03:00
WWW_cool
30f1e698a5 minor 2020-09-17 17:43:00 +03:00
WWW_cool
83a63ccdcd added requested changes 2020-09-17 17:09:54 +03:00
dinama
f8af450e6d
FF-211: +p2ptemplate wapi implement via thrift backend (#297) 2020-09-17 11:18:26 +03:00
WWW_cool
6404b891a3 Merge remote-tracking branch 'github/master' into FF-40/ft/wapi_in_new_repo
# Conflicts:
#	apps/ff_cth/src/ct_payment_system.erl
#	apps/ff_server/src/ff_identity_codec.erl
#	apps/ff_server/src/ff_identity_machinery_schema.erl
#	apps/ff_server/test/ff_deposit_handler_SUITE.erl
#	apps/ff_server/test/ff_destination_handler_SUITE.erl
#	apps/ff_server/test/ff_eventsink_SUITE.erl
#	apps/ff_server/test/ff_identity_handler_SUITE.erl
#	apps/ff_server/test/ff_p2p_template_handler_SUITE.erl
#	apps/ff_server/test/ff_p2p_transfer_handler_SUITE.erl
#	apps/ff_server/test/ff_source_handler_SUITE.erl
#	apps/ff_server/test/ff_w2w_transfer_handler_SUITE.erl
#	apps/ff_server/test/ff_wallet_handler_SUITE.erl
#	apps/ff_server/test/ff_withdrawal_handler_SUITE.erl
#	apps/ff_server/test/ff_withdrawal_session_repair_SUITE.erl
#	apps/ff_transfer/src/ff_instrument.erl
#	apps/ff_transfer/src/ff_withdrawal_session.erl
#	apps/ff_transfer/test/ff_deposit_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_revert_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_revert_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_transfer_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_routing_SUITE.erl
#	apps/fistful/src/ff_identity.erl
#	apps/fistful/test/ff_identity_SUITE.erl
#	apps/fistful/test/ff_wallet_SUITE.erl
#	apps/p2p/test/p2p_quote_SUITE.erl
#	apps/p2p/test/p2p_template_SUITE.erl
#	apps/p2p/test/p2p_tests_utils.erl
#	apps/p2p/test/p2p_transfer_adjustment_SUITE.erl
#	apps/w2w/test/w2w_adjustment_SUITE.erl
#	apps/w2w/test/w2w_transfer_SUITE.erl
#	apps/wapi/src/wapi_p2p_quote.erl
#	apps/wapi/src/wapi_wallet_ff_backend.erl
#	apps/wapi/src/wapi_wallet_handler.erl
#	apps/wapi/src/wapi_wallet_thrift_handler.erl
#	apps/wapi/src/wapi_withdrawal_backend.erl
#	apps/wapi/src/wapi_withdrawal_quote.erl
2020-09-16 11:15:28 +03:00
Артем
cf76aaa8db
FF-215: Withdrawal adv api (#294)
* wip

* added create quote api

* added get events

* added event tests

* refactored

* added requested changes

* fixed

* minor

* fixed

* changed to thrift in tests

* fixed linter
2020-09-16 10:55:20 +03:00
Toporkov Igor
6196658ee3
FF-217: Refactor webhook api (#299)
* wip: Crete separate module for webhook operations

* Rename from/to_swag -> (un)marshal

* Check resources via thrft

* Introduce types, delete original code

* Remove todo because I won't do it

* Small dialyzer/linter fixes

* Apply review suggestions, refactor marshaling/unmarshaling

* Do not throw notfound error

* Return early if wallet is inaccessible

* Split marshaling into more specific functions

* Rename Context -> HandlerContext

* Copy-paste handling to thrift handler

* Remove trailing whitespace

* Fix wrong error being thrown on incorrect webhookID

* Refactor last bits of old [un]marshaling

* Create separate functions to handle thrift API call results
2020-09-15 12:22:46 +03:00
Alexey
911d4d39da
FF-222: Identity name via thrift (#295) 2020-09-15 11:04:05 +03:00
WWW_cool
f5fa174664 removed conflicted files 2020-09-14 16:06:55 +03:00
WWW_cool
ed35865617 fixed and refactored 2020-09-14 15:58:11 +03:00
Alexey
fec3991bcf
FF-206: Fix identity stat provider being an integer (#302) 2020-09-11 15:49:21 +03:00
Alexey
1d94dd0ff6
FF-210: W2W via Thrift (#286) 2020-09-03 19:13:58 +03:00
Alexey
6e93682e1b
FF-206: List Identities/Destinations handles (#287) 2020-09-03 18:30:09 +03:00
Артем
701d666063
FF-156: Withdrawal base api again (#293)
* Revert "Revert "FF-156: Base withdrawal api (#284)" (#290)"

This reverts commit 728df19215.

* fixed

* minor
2020-09-02 22:24:58 +03:00
Артем
728df19215
Revert "FF-156: Base withdrawal api (#284)" (#290)
This reverts commit 87072db6dc.
2020-09-01 16:53:08 +03:00
Артем
87072db6dc
FF-156: Base withdrawal api (#284)
* wip

* fixed dialyzer

* added base

* fixed

* fixed

* added requested changes
2020-08-31 21:53:54 +03:00
Toporkov Igor
eb127a812f
FF-203: Check cards on p2p transfer creation (#279)
* Validate that sender/receiver are the same as in quote

* Handle errors raised by p2p transfer checks

* Fix double do() wrapping, that creates {ok, {error, Thrown}} tuples

* Test wrong token mismatch

* Add different_resource error to thrift handler

* Pass error tuples untouched in do()

* Reintroduce do to createFuns and add new type to errors

* Revert "Pass error tuples untouched in do()"

This reverts commit 098bd928b09b9277bc3133fbe2f05f2efe267a95.

* unwrap function that return error tuple

* do & unwrap in CreateFun

* Remove one do/unwrap combo
2020-08-26 14:04:39 +03:00
Toporkov Igor
02c99564b2
FF-134: Validate identity providers on withdrawal creation (#283)
* Validate providers on start of withrawal

* Test provider_mismatch error

* Draft provider_mismath thrift error

* Add error drafts to CreateQuote

* Upgrade fistful_proto

* Throw thrift error

* Test identity proviers mismatch HTTP API error

* Specify that we are talking about identity providers, fix typo

* Add new error spec

* Apply suggestions from review

* Reword provider_mismatch error description

* Fix lines being too long

* Reword error description
2020-08-26 12:23:31 +03:00
Артем
400cbb19a4
FF-208: Update wallet thrift api (#281)
* added get wallet by external id and get account API methods

* fixed

* refactored mock

* fixed

* fixed bender mock

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-08-24 19:11:26 +03:00
Артем
1d2bcc8d9b
FF-209: Refactor stat API (#282)
* added stat module

* refactored

* fixed name

* added tests

* nano

* minor
2020-08-21 18:00:06 +03:00
Toporkov Igor
5baf8e3040
FF-184: Error mapping (#261)
* Error mapping draft

* Compact errors

* Bump swag-wallets

* Encode errors directly to swag

* Recurcive errors for challenge status

* Map p2p & w2w errors

* Return status field to p2p & w2w

* Fix wrong Request being matched in IssueP2PTransferTicket

* Rename map_internal_error->map_withdrawal_error

* Bump swag

* Remove domain_failure and failure clauses

* Unify all new error mappings

* Match on subError
2020-08-10 15:19:40 +03:00
Andrey Fadeev
0d6d68d5ff
MSPF-560 Fix withdrawal session migration (#276)
* MSPF-560 Fix withdrawa session migration
Fix typo in full resource getter

* Fix woody_retry_test
2020-08-05 17:01:07 +03:00
Toporkov Igor
dcc388ba2b
DC-127: Refactor Payment Methods (#248)
* DC-127: Refactor Payment Methods (#241)

* Use corresponfing branches for deps

* Use epic version of hg

* Provide config for hellgate's party_management

* Use new BankCardPaymentMethod

* Upgrade deps

* Replace has_cvv with is_cvv_empty

* Fix payment method creation in ct_domain

* Define is_cvv_empty where it can be undefined

* Use _deprecated pm's

* Switch to master

* Use https url to dmt_client in lockfile
2020-08-04 22:53:18 +03:00
Andrey Fadeev
d7b6297193
MSPF-560 Update quotes processing according to new proto (#264) 2020-07-29 16:41:58 +03:00
Артем
1ec414382c
FF-196: Add withdrawal session schema (#256)
* added withdrawal schema

* fixed

* minor

* nano

* nano

* fixed

* fixed

* fixed
2020-07-19 19:17:21 +03:00
Alexey
829b65e881
FF-183: Withdrawal terminals (new) (#249)
* WIP terminals

* Review fixes

* Fix errors

* Add missing param

Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-07-10 17:05:21 +03:00
Артем
fed9386798
FF-195: Ticket expiration check (#243)
* added ticket expiration check

* minor
2020-06-30 09:00:20 +03:00