Commit Graph

159 Commits

Author SHA1 Message Date
Alexey S
0d0c59a0c2
TD-287: Remove userinfo and update protocols (#27) 2022-05-16 12:24:22 +03:00
Andrew Mayorov
2a73c73d9b
TD-273: Drop legacy routing facility (#23)
* Drop unused macros / includes

* Drop testcase relevant to legacy routing only

* Adapt SUT setup to work w/o legacy routing

While also ensuring that domain config does not spill into `ct_domain`
helper module.

* Sync Dockerfile w/ valitydev/erlang-templates

* Bump to valitydev/party-client-erlang@31850a6

* Switch to valitydev/party-management@f757b79 in testenv

* Add couple identity suite testcases
2022-04-21 14:02:52 +03:00
ndiezel0
b2aec027fd
TD-264: Move to accounter (#22)
* TD-264: Move to accounter

* Hadofix

* Hadofix 2

* Review fixes

* Review fix
2022-04-20 19:59:06 +03:00
Артем
a85fce09a3
APM-43: Withdrawal methods get & check + generic method support (#13)
* added withdrawal method validation

* finished base logic

* added generic support

* updated to proto with base ns

* started to add tests

* fixed after merge

* fixed format

* fixed tests

* added requested changes

* fixed

* added get identity terms method
2022-03-10 17:30:29 +03:00
Артем
32cc17e061
TD-170: Add CI/CD (#4)
* added base ci cd files

* removed cds, kds, identdocstore, improved make, added compose

* fixed format

* fixed dialyzer

* added compose run

* changed to project_plugins

* fixed prometheus

* fixed lock

* fixed format

* removed deps

* added test fixes

* fixed lint

* fixed and removed old cfg

* removed unused app

* added requested changes

* fixed yamllint

* fixed

* removed expose

* updated party healthcheck

* updated compose

* removed version

* mb port?

* Revert "mb port?"

This reverts commit bf42f1c536.

* fixed
2022-03-02 11:20:07 +03:00
Артем
b6e44ef7ae
APM-20: Payment service ref to digital wallet resource (#2)
* changed to payment service ref

* fixed lint

* updated dmt_client, added resource check

* Fix marshalling and tests

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2022-01-28 17:14:32 +03:00
Andrew Mayorov
e3f6320077
Bump to rbkmoney/damsel@625100e 2021-12-28 17:57:30 +03:00
Boris
f6155acb04
[FF-235] delete identify: challenge, identity class (#410) 2021-11-26 10:34:34 +03:00
yuri-bukhalenkov
4d112ad5b3
ED-293/updated protocol (#409)
* updated protocol
2021-11-19 20:37:16 +03:00
Boris
4d0aacc2c8
Update damsel rbkmoney/damsel@1c0b2160 (#407) 2021-10-22 13:30:08 +03:00
Sergey Yelin
7148993694
ED-242: Upgrade Erlang and deps (#401)
* Upgrade Erlang

* Upgrade deps

* Update shumway
2021-09-15 15:05:03 +03:00
George Belyakov
04292c3bc3
ED-131: flexible dicts (#394)
* payment_system marshal/unmarshal in ff_codec

* payment_system in ff_resource/ff_withdrawal

* implement payment_system, part 1

* bump damsel (+ BinData)

* fix dialyzer

* implement payment_system, part2 (not work version, only for save)

* implement payment_system, part3

* fix compilation error

* fix dialyzer

* fix payment_system_deprecated decoding/error-return issue

* fix ff_bin_data typing, fix useless code in ff_codec

* fix varset issue in withdrawal

* fix create_resource issue

* fix review issues with marshalling/unmarshalling and PaymentInstitution/PaymentSystemSelector typing

* implement payment_system additional rework

* fix complete_resource cases issue

* rework create_resource func, part1, save varesion, not working

* rework types in ff_resource

* rework withdrawals/resource do-unwraps, fix errors

* fix payment_system optionality in withdrawal adapter marshalling

* fix review issues (more compact and proper resource_create)

* fix ff_routing_rule RoutingRuleTag optionality issue

* add party-management image to test env, cbange party management calls from hellgate to party-management

* fix issue with wrong BankCard field "iso_country_code" which right name is "issuer_country"

* fix payment_system eunit issue in withdrawal session machinery schema

* add payment system to ct

* docker-compose party-management image update

* try to fix issuer_country issue

* iso_country_code/issuer_country issue fixed.

* add dummy payment system selector to payment institution #2

* fix dialyzer

* nano

* nano

* nano

* remove hellgate

* nano

* refactoring

* add BinDataCondition to payment_system selector in ct
2021-09-03 12:44:34 +03:00
Yaroslav Rogov
ef3dc8880c
ED-190/deps: Update dmt_client (#393)
* ED-190/deps: Update dmt_client

* ED-190/fix: Update dmt_client conf in tests

* ED-190/deps: Update dmt_client

* ED-190/deps: update dmt_client and update usage

* Revert "ED-190/deps: update dmt_client and update usage"

This reverts commit 880c0682e167d84ee17c04fee4f95f19a92ebfec.

* ED-190/test: fix tests

* ED-190/test: Fix tests

* ED-190/fix bump version

* ED-190/deps: Update party_client_erlang
2021-08-26 16:54:28 +03:00
Yaroslav Rogov
d4ede853a0
Ed 226/feat/monitoring (#398)
* ED-226/feat: Add the rest of monitoring tools

- how_are_you for metrics
- config for erlang_health
- prometheus routes

* ED-226/fix: Fix route concat

* ED-226/refactor: Fix formatting to erlfmt v0.12

* ED-226/fix: Fix spec

* ED-226/deps: Add woody_api_hay

* ED-226/refactor: Fix formatting

* ED-226/fmt: Partially return author format of */sys.config

* ED-226/fmt: sys.config formatting fixes
2021-08-24 15:58:11 +03:00
Yaroslav Rogov
f9d8f68a6b
Revert "ED-226/feat: Add the rest of monitoring tools (#395)" (#397)
This reverts commit 0ab1c9b8d7.
2021-08-23 18:29:04 +03:00
George Belyakov
0c044fe4a3
update damsel (#396) 2021-08-23 17:23:01 +03:00
Yaroslav Rogov
0ab1c9b8d7
ED-226/feat: Add the rest of monitoring tools (#395)
* ED-226/feat: Add the rest of monitoring tools

- how_are_you for metrics
- config for erlang_health
- prometheus routes

* ED-226/fix: Fix route concat

* ED-226/refactor: Fix formatting to erlfmt v0.12

* ED-226/fix: Fix spec
2021-08-23 15:03:01 +03:00
Артем
70a96a92dd
ED-168: Destination webmoney (#392)
* changed resource in destination to ff resource

* added new resource type for destination

* nano

* removed debug

* updated to ff master
2021-07-09 14:59:55 +03:00
George Belyakov
80a7d7218a
ED-101: party management terms calculation (#385)
* hg_selector: remove fold/collect funcs

* add compute_provider_terminal_terms into ff_party, replace hg_selector calls in compute_fees of withdrawal

* fix, proper way to match ProvisionTermSet

* replace hg_selector calls in terms validate of withdrawal_routing

* fix ct

* add compute_provider call to ff_party, replace hg_selector to pm in withdrawal terminals legacy computing code

* dialyzer

* dialyzer

* replace hg_selector in ff_p2p_transfer to compute fees

* fix ct

* replace hg_selector calls in p2p_transfer_routing

* format

* replace hg_selector in ff_transfer

* add compute_payment_institution to ff_party, replace hg_selector in payment_institution

* payment institution getters fix

* fix linter

* few fixes

* some varset fixes, not working commit only for CI tests tries

* remove hg_* files (but hg_cash_range), varset stuff in ff_varset module now

* revert some wrong changes, save not-woring commit

* ff_party fixes tries

* final version of ff_party varset decoding

* clean rest debug logs and some things

* fix ct (provider-terminal terms)

* format

* bump hellgate in docker-compose

* fix, reduce case nesting

* bump damsel/party_client, bump hellgate in docker-compose

* fix copy-paste mistake

* replace bank_card test construct with define

* rework wothdrawal_providers/p2p_providers/p2p_inspector getter funcs to be more readable and less "repeat yourself" code

* fix issue with wrong SystemAccountSelector getting value out of do-unwrap block

* fix unclear case pattern matching

* small fix to make code more proper

* fix, reduce case nesting

* fix bad code
2021-05-17 17:57:30 +03:00
dinama
60b964d0e0
ED-119: +fix entry point +upgrade deps +cds_proto (#389) 2021-04-15 16:33:36 +03:00
dinama
534a71055e
ED-129: drop wapi code (#388) 2021-04-15 10:26:11 +03:00
dinama
1cf7486d09
ED-117: damsel upgrade (#387) 2021-04-13 10:39:57 +03:00
yuri-bukhalenkov
34c123b5d6
Ed-74: added wallet revert adjustment (#376)
* updated fistful-proto, swag-wallets, build_utils

* wapi_stat_backend: added list_deposit_reverts & list_deposit_adjustment functions

* wapi_wallet_thrift_handler: handle ListDepositReverts & ListDepositAdjustments calls

* wapi_wallet_ff_backend: added list_deposit_reverts & list_deposit_adjustment functions

* wapi_wallet_handler: handle ListDepositReverts & ListDepositAdjustments calls

* response demarshalling

* tests
2021-03-25 12:40:59 +03:00
Boris
d8c91dc409
bump damsel rbkmoney/damsel@7a9d7a6 (#375) 2021-03-03 13:04:37 +03:00
dinama
b2f2aa8b1c
ED-17: terminal cash flow priority (#370) 2021-02-15 14:34:44 +03:00
dinama
30025b7b98
+upgrade world (#368) 2021-02-08 18:36:18 +03:00
Sergey Yelin
e20d85f71a
Add uzcard as payment system (#364) 2021-02-03 11:58:53 +03:00
dinama
442fd7ed3a
upgrade world (#360) 2020-12-29 17:16:07 +03:00
dinama
b9d4e2df53
FF-237: ResourceToken expiration (#356) 2020-12-16 20:47:56 +03:00
dinama
7a1257a427
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>
2020-12-15 18:46:07 +03:00
dinama
f07f4c0e9e
bump damsel with yandexpay (#352) 2020-12-09 14:24:13 +03:00
Sergey Yelin
f60ec8c715
Add uzcard (#350)
* Add uzcard

* Increase back decreased timeout to ensure test success
2020-12-04 20:10:45 +03:00
dinama
8f435c2e75
473: migrate to Alpine (#346) 2020-12-03 17:49:23 +03:00
Toporkov Igor
dcc4b32a35
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 bfc88dcb37)
2020-11-20 14:42:41 +03:00
dinama
c229d491ba
FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) 2020-11-19 22:51:23 +03:00
Toporkov Igor
01fb6d846d
fix: Revert everything & add erts (#335)
* Revert everything back to prometheus_metrics

* Include erts
2020-11-12 17:36:13 +03:00
Toporkov Igor
bfc88dcb37
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
2020-11-06 11:26:20 +03:00
dinama
a059b48612
FF-219: wapi getP2PTransferEvents via thrift backend (#322)
* bump fistful_proto
* p2psession GetEvents support
* meck
2020-11-02 18:22:03 +03:00
Toporkov Igor
57fe94e621
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.
2020-10-26 17:08:29 +03:00
dinama
304b14275c
FF-207: transaction_bound event on withdrawal session (#315) 2020-10-20 23:07:04 +03:00
Артем
7d05ea93bd
FF-225: Refactor provider api (#316)
* added provider backend

* added provider service

* refactored wapi, added tests

* fixed
2020-10-13 18:41:29 +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
Alexey
c337f745b5
MG-183: Modernizer support (#311) 2020-09-25 18:52:51 +03:00
Alexey
911d4d39da
FF-222: Identity name via thrift (#295) 2020-09-15 11:04:05 +03:00
Alexey
fec3991bcf
FF-206: Fix identity stat provider being an integer (#302) 2020-09-11 15:49:21 +03:00
Toporkov Igor
1d39c7d45f
FF-221: Accessibility thrift errors (#292)
* Upgrade fistful_proto

* Throw new exceptions
2020-09-03 12:18:42 +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
Toporkov Igor
ca01722c40
MSPF-567: update bender client lib (#280)
* Upgrade bender

* Update bender_client

* Update bender_client

* Handle bender returning both binary and integer ID

* Resolve missed  merge conflict

* Configure url for generator

* Fix pattern matching in externalID tests

* Fix wrong order of operands on external_id_conflict

* Hide IntegerId from fistful

* Fix wrong error matching
2020-08-18 18:37:11 +03:00
Артем
fe88fa424e
FF-202: New states 2 (#262)
* added states types

* changed to state types

* fixed tests

* added withdrawal session handler

* added p2p session handler

* added p2p transfer handler

* fixed

* fixed

* added p2p_transfer tests

* added p2p session tests

* fixed

* added w2w handler and tests

* wip

* fixed to fit proto

* fixed

* fixed

* fixed

* added source handler

* added tests for source handler

* refactored withdrawal session status

* fixed

* updated proto
2020-08-18 11:57:16 +03:00