Commit Graph

547 Commits

Author SHA1 Message Date
undefined
f7e8c37f6a 🔄 Created local '.github/settings.yml' from remote '.github/settings.yml' 2022-03-27 01:13:48 +00:00
undefined
abca519d0a 🔄 Synced local '.github/workflows/basic-linters.yml' with remote 'workflows/base/basic-linters.yml' 2022-03-27 01:13:48 +00:00
Артем
2586e6df84
TD-170: FIX - dockerfile (#14) 2022-03-10 20:42:22 +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
github-actions[bot]
1862201e94 Update file(s) from valitydev/.github 2022-02-21 22:05:08 +00:00
github-actions[bot]
216aeb76a0 Update file(s) from valitydev/.github 2022-02-21 21:37:41 +00:00
renovate[bot]
4649bd3c09
Add renovate.json (#1)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-21 20:24:13 +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
f26deeae80
Ensure terminal is unicode capable in release
With the help of valitydev/iosetopts@edb445c
2021-12-28 18:14:10 +03:00
Andrew Mayorov
47cd1589a1
Build and push images w/ GH Actions workflow 2021-12-28 18:11:52 +03:00
Andrew Mayorov
e3f6320077
Bump to rbkmoney/damsel@625100e 2021-12-28 17:57:30 +03:00
Andrew Mayorov
7a12d5832b
Get rid of proprietary CI bits 2021-12-28 17:56:53 +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
George Belyakov
2be57c4e9f
ED-301: fix terminal_id optionality issue in compute_fees at ff_withdrawal (#406)
* fix terminal_id optionality issue in compute_fees at ff_withdrawal

* add comment
2021-10-28 14:40:56 +03:00
Sergey Yelin
56d834f5b3
ED-312: Fix payment_system format in destination (#408) 2021-10-27 18:33:22 +03:00
Boris
4d0aacc2c8
Update damsel rbkmoney/damsel@1c0b2160 (#407) 2021-10-22 13:30:08 +03:00
Boris
fcb6a8fba0
[ED-279]: delete p2p (#404) 2021-10-20 14:09:21 +03:00
George Belyakov
526adc789f
ED-250: fix repairer timer unmarshalling (#405)
* fix repairer timer unmarshalling

* format

* add unmarshal(repair_scenario, ..) eunit test

* add not-working test

* repair test, part 1

* fix test groups checking on init suites

* repair test, part2

* clean

* fix dialyzer

* right way to replace test config for force_status_change_test

* format

* clean

* fix wrong unmarshalling nesting

* return back Options getters (ct_payment_system)

* fix wrong assertEqual args order, fix typo

* force_status_change rework (add await, check withdrawal status)
2021-10-13 15:08:49 +03:00
Yaroslav Rogov
b9f0cdf2e4
fix: Fix withdrawal creation validation (#402) 2021-09-16 19:07:07 +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
918f6ca9b7
fix payment_system optionality (#400) 2021-09-15 12:09:37 +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
George Belyakov
b7e55236a8
ED-255: table routing fix (#399)
* fix wrong arguments order, add unit test for convert_to_route

* format

* fix typo
2021-08-31 14:41:45 +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
06380f0fed
ED-153: handle ProvisionTermSetUndefined exception (#391)
* handle ProvisionTermSetUndefined exception

* clean useless "terms" fields in test terminals

* add TODO's
2021-05-19 11:15:35 +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
94f1ed9f50
ED-133: +dialyzer as test (#390) 2021-04-26 11:30:10 +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
dinama
41f6f1eddd
upgrade: +images +build-utils (#386) 2021-04-06 11:10:45 +03:00
George Belyakov
eaeb81c95a
ED-62: p2p transfer add terminals (#377)
* move terms validation from ff_p2p_provider to p2p_transfer

* add terminals to p2p_transfer

* fix wrong route return

* return withdrawal changes

* fix type after merge

* add p2p_terminals to tests

* add get/2 to p2p_terminal (like p2p_provider's get)

* fix wrong ruleset tag

* wrong terminal in p2p routing tests

* wrong terminal in decisions in p2p routing test rulesets

* Revert 2x "Merge branch 'master' into ED-62/ft/p2p_transfer_add_terminals"

* Revert "Revert 2x "Merge branch 'master' into ED-62/ft/p2p_transfer_add_terminals""

This reverts commit cd593cb602b3ab06bcbe77e2b7b0974982e7a92c.

* return back 6,7,8 withdrawal terminals (being unused for my point of view)

* fix wrong func contract

* dialyzer
2021-04-01 17:16:33 +03:00
Sergey Yelin
2c49e05d56
ED-100: Use domain revision to while compute system account (#384) 2021-03-31 12:05:17 +03:00
Sergey Yelin
4ef1e2d964
ED-100: Add domain revision to legacy routing (#382)
* ED-100: Add domain revision to legacy routing

* More revisions to routing

* More revision for provider in withdrawal

* Eliminate get/1 for providers and terminals

* Use the same revision for adapter
2021-03-30 13:06:40 +03:00
dinama
ba49990470
Revert "ED-96: move wapi ignoring to application level (#381)" (#383)
This reverts commit d3fd242fe1.
2021-03-30 01:17:05 +03:00
dinama
d3fd242fe1
ED-96: move wapi ignoring to application level (#381) 2021-03-29 23:41:43 +03:00
dinama
2665cb62bb
ED-96: enable to ignore wapi init (#380) 2021-03-29 18:14:55 +03:00
dinama
d8c333429c
ED-96: allow wapi disable (#379) 2021-03-29 13:31:49 +03:00
Sergey Yelin
ddc895e915
Fix crash when no available routes found (#378)
* Fix crash when no available routes found

* Fix dialyzer error

* Get routes then fail is transient only

* Fix function name

* Remove unused type
2021-03-29 11:51:44 +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
George Belyakov
1859cf0ea3
FF-238: table routing (#359)
* +bump party_client +bump woody -w/o test

* add dummy ff_routing_rule with no routes, add dummy gather_route call, tests ok, dialyzer empty list warning

* add routing rule set computing call from party, add routing ruleset implementation

* fix terms check for p2p, add routing rules for withdrawal

* +bump party_client +bump woody&thrift -w/o test

* fix module structure

* fix maps fields optionality

* +bump cds_proto, scoper, machinery, dmt_client, bender_client, image

* +update code for woody tuples

* fix format

* remove unused varset

* Revert "Merge remote-tracking branch 'origin/ft/upgrade_patry' into FF-238/ft/add_table_routing"

This reverts commit 2c6aa296d09b4be1ab57319afd2220b8665f89cf, reversing
changes made to cf43d1fd0906aef5fd4d6501c191a29fc3193746.

* Revert "Merge remote-tracking branch 'origin/ft/upgrade_patry' into FF-238/ft/add_table_routing"

This reverts commit 4923fef5c351a5a3b5a5ade6d8b3aaaacb59fc63, reversing
changes made to 8d4ea1a28a6ca2d37d900b607c90f6ede63e553e.

* add routing_rule test file, add test rulesets to ct_payment_system, not working commit: ruleset cannot to be reduced to candidates

* rework routing_rule (add do/unwrap, fix resulting routes list order, fix optional/required fields issues etc)

* add PartyID to varset thrift encoding, add tests

* fix remove unused ruleset define

* add error handling for routing ruleset computing call

* remove useless rules-not-found warning, remove unused commented code

* fix unsuitable function name

* make *_routing_rules fields in payment_institution optional again

* fix unwrap's issues, remove get_routing_rules function for it's useless

* clean types

* format

* fix wrong routing_rules getting from PaymentInstitution

* wrong do_gather_routes return fix

* add priority to 'route' map in ff_routing_rule

* fix wrong validation terms in ff_withdrawal_routing

* fix dialyzer

* add rejected context logging

* don't hide errors, passing it through entire gather_routes. But for now we don't logging errors anyway, before new routing will be finished and legacy routing will be removed

* fix error naming

* more proper map value get, fix domain object get mistake

* add candidates-was-computed check (candidate predicat is constant)

* add TODO: party client bump

* fix wrong p2p call instead of withdrawal

* add weight to route() (so its field don't used for now anyway), fix issue with optional/undefined fields in ff_payment_institution

* rework terms validation

* remove provider_ref, terminal_ref from ff_routing_rule:route() for it's useless

* fix mistake with correct routes filtering - field terminal_id in p2p_transfer not required

* add warning of misconfiguration

* fix mistake of absent TerminalRef field

* format

* fix 'dont_repeat_yourself' warnings

* fix wrong pattern matching

* rework ff_routing_rule:route() type - remove useless fields, return terminal_ref field

* return RejectedContext to result of gather_routes

* try to fix tests with single provider

* fix RejectedContext/logging issues

* bump party_client_erlang, update routing rules computing call

* fix ugly function specification

* do legacy routing if no routes found after validation

* fix wrong routes validation filter in withdrawals

* add routes filtered by terms to the rejectcontext in withdrawal_routing

* add routes filtered by terms to the rejectcontext in p2p_transfer, sorting p2p_transfer providers by priority and ProviderID

* fix ugly provision_terms function in withdrawal_routing

* fix mistake with validating providers returned result

* dialyzer

* remove rejected_providers for its waste

* rework check_ruleset_computing func to make it less ugly

* remove sorting by priority from p2p_transfer for its useless at current routing rules implementation stage

* Revert "remove sorting by priority from p2p_transfer for its useless at current routing rules implementation stage"

This reverts commit 052934bee178afe6b5a14f0323584b74fc334eab.

* resolve conflict with master (identical functions naming)

* remove 'ruleset_not_found' error, as it's computation fail is impossible (assuming the dominant is consistent)

* remove unused error

* make *_routing_rules fields mandatory

* dialyzer

* p2p_transfer: return old way of terms validate (with ff_p2p_providers module using)

* format

* return validate_provider_terms function to its initial appearance

* remove unused export

* wrong function name

* Revert "return old way of terms validate (with ff_p2p_providers module using)"

* remove validate_terms_legacy - it's duplicates itself with validates_terms

* return validate_p2p_transfers_terms_legacy to just validate_terms

* wrong validate_terms function use

* remove unused

* wrong spec

Co-authored-by: dinama <dinama@users.noreply.github.com>
2021-03-03 01:14:08 +03:00
Andrey Fadeev
617cd03968
ED-49 Fix legacy route-less withdrawal reading (#374) 2021-03-02 10:35:14 +03:00