Commit Graph

556 Commits

Author SHA1 Message Date
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
Andrey Fadeev
9b74bb61f5
ED-49 Allow to build state without route (#373) 2021-03-01 17:45:42 +03:00
Andrey Fadeev
a85ec372ba
ED-49 Fix legacy withdrawal state building (#372) 2021-02-26 17:51:26 +03:00
Andrey Fadeev
8e953afe01
Fix adapter state event multiplication in session machines (#369) 2021-02-16 13:44:46 +03:00
dinama
2dbe72b3e4
+drop ff_withdrawal_provider.erl (#371) 2021-02-15 17:06:56 +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
56ec879993
Sync payment systems (#367) 2021-02-03 15:25:18 +03:00
Sergey Yelin
e20d85f71a
Add uzcard as payment system (#364) 2021-02-03 11:58:53 +03:00
Sergey Yelin
5a4b578bd9
Upgrade kds (#363) 2021-01-13 16:06:26 +03:00
dinama
58a66cea03
compose: bump images (#362)
* bump proxy-mocketbank

* bump binbase
2020-12-30 09:15:36 +03:00
dinama
442fd7ed3a
upgrade world (#360) 2020-12-29 17:16:07 +03:00
dinama
2f2241e2f4
FF-237: bump wapi-pcidss (#358) 2020-12-21 16:17:58 +03:00
dinama
b9d4e2df53
FF-237: ResourceToken expiration (#356) 2020-12-16 20:47:56 +03:00
dinama
3dc4a676c0
FF-237: +bump wapi_pcidss image +drop old keys +bump build-utils (#357) 2020-12-16 10:40:07 +03:00
dinama
6c389c889c
+remove debug message (#355) 2020-12-15 20:11:23 +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
8cbc0d2457
Upgrade services (#348)
* Upgrade services

* Upgrade more services
2020-12-04 21:28:43 +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
dinama
d8713b86c9
erlfrm code formatter (#347) 2020-12-02 17:43:45 +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
Alexey
619720f0e9
FF-226: Withdrawal session finish notification (3rd part) (again) (#343) 2020-11-19 16:28:06 +03:00
Alexey
20a57ef038
FF-226: Withdrawal session finish notification (2nd part) (again) (#342) 2020-11-19 11:59:20 +03:00
George Belyakov
8b3ac6fdec
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 d2336c26b2)
2020-11-17 19:35:20 +03:00
Alexey
eadf93b70d
FF-226: Fix for failing machines in part 1 (#338) 2020-11-17 14:07:03 +03:00
Alexey
f7c9e65c5b
FF-226: Withdrawal session finish notification (1 part) (#337) 2020-11-16 12:36:00 +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
dinama
a64579afc3
+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
2020-11-09 16:06:36 +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
Alexey
2eb9e597fe
FF-226: Withdrawal session finish notification (3rd part) (#332) 2020-11-05 16:11:07 +03:00
Alexey
f98db2bd7d
FF-226: Withdrawal session finish notification (2nd part) (#331) 2020-11-05 15:43:10 +03:00
Alexey
4a413ceec7
FF-226: Withdrawal session finish notification (1 part) (#330) 2020-11-05 12:15:22 +03:00
George Belyakov
d2336c26b2
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>
2020-11-03 20:05:47 +03:00
Alexey
f696ac73db
Revert "FF-226: Withdrawal session finish notification (#314)" (#329)
This reverts commit 96186224de.
2020-11-03 13:51:40 +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
Alexey
96186224de
FF-226: Withdrawal session finish notification (#314) 2020-11-02 15:47:45 +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
George Belyakov
932f202762
add tests, fix backend/handler (#323)
y.beliakov <y.beliakov@rbkmoney.com>
2020-10-20 13:59:39 +03:00