Commit Graph

270 Commits

Author SHA1 Message Date
Sergei Shuvatov
da2cc7fa7a HG-472: add terminal priority (#318) 2019-06-24 18:51:50 +03:00
Sergey Elin
8635a3769e Switch to logger (#335)
* Revert "HG-478 Revert update to Erlang 21 (#320)"

This reverts commit 7179e82258e6d8a779448640e2ebe4d5ed79a35b.

* MSFP-433: Erlang 21 with lager

* Fix comments

* HG-479: Switch to logger

* HG-479: Add memory limit for test container

* HG-479: Fix missing

* Fix logger config

* HG-479: Fix for logger formatter

* HG-479: lager -> logger
2019-06-21 21:48:37 +03:00
Sergey Elin
fbddb4f2d3 MSPF-467: Update erlang and deps (#334)
* MSPF-467: Update erlang and deps

* MSPF-467: Update service-erlang
2019-06-21 18:26:10 +03:00
Andrey Fadeev
1a772ef49a HG-484 Encode MG calls with thrift (#329) 2019-06-17 15:55:36 +03:00
Roman Pushkov
7f6bf45e5c HG-489: timeout for fault detector to prevent processing errors (#331)
* add timeout to see if tests fail

* update hg_woody_wrapper:call/4 to receive a deadline without options

* use timeout in fd client

* set very low fd timeout to prevent tests from being slow

* update sys.config

* lower fd delay

* set default fd timeout to 4000

* rename get_service/1 to get_service_opts/1, export, minor refactoring

* use hg_woody_wrapper:get_service_opts/1 in fd client
2019-06-08 21:37:22 +03:00
Roman Pushkov
2feee7051f HG-488: Use default woody options in fault detector (#330)
* remove custom options from fd call

* remove timeout option
2019-06-07 11:05:32 +03:00
Roman Pushkov
f72bbab569 HG-477: Allow provider fee selection by terminal (#314)
* update gitignore

* add terminal_is condition test to hg_condition

* add terminal to varset

* use terminal in routing varset

* update tests to use terminal_is condition

* update dmsl and dominant

* fix dialyzer

* revert, use optional fields in payment terms

* add support for optional fields in terminal terms

* update damsel, dominant

* add custom fee to a terminal in tests

* update dominant

* revert terminal_is check in hg_condition

* more explicit naming

* add cashflow override test

* terminal holds and refunds override provider
2019-05-31 12:03:58 +03:00
Roman Pushkov
0fc4198197 HG-466: Use fault detector in hellgate routing (#302)
* add fault-detector dep

* fix typo

* update rebar.lock

* update fault detector version

* init fault detector client

* add fault detector base

* add fault-detector url placeholder

* get fault-detector url from env

* fix woody client call

* fix formatting, update gitignore

* update fd client, add fd init placeholder after routing

* add fault_detector_proto to app.src

* fix register_operation in fault detector

* update register operation template after choosing route

* update fd client

* add fault detector to hg_proto

* add placeholder for fd scoring in routing

* add fault detector template to sys.config

* update fault detector client

* add GetStatistics call to routing

* update fault detector client

* update get statistics call in routing

* doc tweak

* fix typing

* fix type

* add init service after routing

* update fd client

* add fd notifiers on success and failure

* clean comments

* add fd dummy to tests

* update routing

* temporarily disable sending operations to fd

* add fd routing test case

* remove retry strategy from fd client

* minor tweak

* add fd routing test

* update tests

* update fd client

* update fd client

* refactoring, update test

* formatting fix

* minor refactoring

* more refactoring

* more refactoring

* fix formatting errors

* minor

* space fix

* fix typo

* remove whitespace

* fix whitespace

* Update hg_direct_recurrent_tests_SUITE.erl

* Update hg_invoice_tests_SUITE.erl

* formatting fixes

* separate routing tests

* update config

* update routing

* update fd client

* clean up comments, update fault detector calls

* fix errors

* fix line length

* fix commas

* fd refactoring

* improve fd formatting

* formatting

* refactoring

* add fail rate scoring test base

* split route selection into multiple functions, refactoring

* fix line length

* update fd config, move fd notification to hg_proxy_provider

* config update

* fd client refactoring

* new route selection + tests

* fix trailing comma

* update config

* update fd client with new config

* rework route selection algorithm

* fix error handling in hg_proxy_provider

* merge, update tests, fix types

* move to logger in fd client

* build_utils update

* fix build utils

* remove lager, update fd child spec

* minor refactoring

* revert to lager in fd

* revert to lager in routing tests

* add match on terminate child in tests

* remove unnecessary include
2019-05-27 11:06:38 +03:00
Sergey Elin
2f76b08b9a Add crypto currency (#326) 2019-05-24 11:40:32 +03:00
Andrew Mayorov
40e7c28533 Allow to turn transition validation off w/ repairs (#325)
* Add final test ensuring balances are consistent
* Bump to rbkmoney/damsel@ce5f697
* HG-482: Fix crash in new damsel
2019-05-23 17:56:47 +03:00
Sergey Elin
17c9a5dc41 Upgrade to Erlang 21 (with lager) (#322)
* MSFP-433: Erlang 21 with lager
2019-05-20 14:59:29 +03:00
Andrey Fadeev
45045eef0a HG-478 Revert update to Erlang 21 (#320)
* Revert "MSFP-433: Fix badmatch in woody (#316)"

This reverts commit c9174907a2fd80b7e2d1968a8a850549ce043f62.

* Revert "Upgrade woody (#315)"

This reverts commit e1ed1624971f30142da7a82653bd2ece7616be9d.

* Revert "HG-433: Upgrade to Erlang 21 (#313)"

This reverts commit faf7d595dd6e5a04a882a09514ee29d84ae4d582.
2019-05-17 11:52:11 +03:00
Sergey Elin
2926668a89 MSFP-433: Fix badmatch in woody (#316) 2019-05-15 17:54:22 +03:00
Sergey Elin
201b3d1e37 Upgrade woody (#315) 2019-05-15 12:48:08 +03:00
Sergey Elin
c482e862bb HG-433: Upgrade to Erlang 21 (#313)
* HG-433: Upgrade build_utils
* HG-433: Upgrade base erlang image and build image
* HG-433: Upgrade machinegun
* HG-433: Upgrade libraries
* HG-433: Switch to cowboy 2.x
* HG-433: Update dmt_client
* HG-433: Switch to logger
2019-05-08 15:17:59 +03:00
Sergei Shuvatov
443f638b47 HG-473: bump dmt_client (#312) 2019-05-06 17:08:33 +03:00
Andrew Mayorov
5fa7b66362 Implement payment context storing (#311)
* Bump to rbkmoney/damsel@3883e6a
2019-04-30 20:38:31 +03:00
Sergey Elin
d0334c7318 HG-471: Added risk_score_is_too_high to no_route_found (#308)
* Added risk_score_is_too_high to no_route_found
* Update damsel
* Fix logger level for new status
2019-04-26 11:48:07 +03:00
Sergei
56a648f44f HG-473: optimize memory consuption by dmt_client (#309) 2019-04-25 16:20:12 +03:00
Boris
66ff67711a HG-459 Events serialize/deserialize in thrift binary (#303) 2019-04-09 09:34:25 +03:00
Sergei
5093751035 HG-465: invoice creation and payment start idempotency (#306)
* Use invoice id from InvoiceParams/InvoiceWithTemplateParams if defined
* Use payment id from InvoicePaymentParams if defined
* Store external_id for invoice and payment
2019-04-08 16:12:20 +03:00
Alexey
4cecdb3aa6 HG-461: Add manual refund handle (#292) 2019-02-28 16:30:02 +03:00
Артем
27242b9ade HG-463: Partial capture permit (#291) 2019-02-27 10:31:04 +03:00
Артем
59bcaf7584 HG-460: Empty cvv (#289) 2019-02-26 14:46:14 +03:00
Andrew Mayorov
7b6a41301c Implement custom repair machine actions (#293) 2019-02-25 18:13:34 +03:00
Andrew Mayorov
b1aa72cf7b Bump to rbkmoney/woody_erlang@d8de03d (#288) 2019-02-20 14:52:40 +03:00
Артем
b66cf6f305 HG-455: Partial capture (#284) 2019-02-04 14:44:38 +03:00
Evgeny Levenets
40e2b11ae0 DC-104: withdrawals routing v2 (#287) 2019-01-31 15:01:28 +03:00
Alexey
25902f83cf DC-111: Add subagent account (#286) 2019-01-29 15:41:43 +03:00
Evgeny Levenets
53c432d52f DC-104: bump damsel to work with new domain config (#285)
rbkmoney/damsel@1c28959
2019-01-25 16:02:25 +03:00
Andrey Fadeev
c0ff473653 MG-145 Add VM metrics collection (#278)
Add `how_are_you` library usage
2019-01-15 00:36:59 +03:00
Артем
d1bfe86db1 HG-450: Wallet payout tool (#275) 2018-12-12 17:14:15 +03:00
Артем
f629d7e68b HG-444: Add sequence (#269) (#270) 2018-11-12 16:33:15 +03:00
Артем
691a21d2e8 HG-439: Invoice repair tool (#258) 2018-10-23 09:55:31 +03:00
Andrey Fadeev
1ddd3552e9 FF-7 Add varset using to wallet terms construction (#261) 2018-10-15 16:31:53 +03:00
Alexey
4ec0c3b177 DC-102: Bank card routing with data from binbase (#259) 2018-10-12 17:56:35 +03:00
Andrey Fadeev
3b084b1be7 MSPF-392 Update woody and scoper (#260)
Update to version with fixed caching client scopes
2018-10-12 14:50:26 +03:00
Артем
45698158b4 HG-437: Fix anti fraud bypass (#255) 2018-10-03 11:44:21 +03:00
Andrew Mayorov
92eb9d4282 HG-441: Bump to rbkmoney/damsel@4c78d0d5 (#257)
* HG-441: Add a couple of simple test cases
2018-10-02 17:51:37 +03:00
Andrey Fadeev
20c7891416 HG-391 Add first payment recurrent (#246) 2018-09-26 21:18:21 +03:00
Артем
bd23012d89 HG-422: Party revision (#244) 2018-09-26 10:33:49 +03:00
Артем
800b1e824c HG-422: Party revision serverside (#250) 2018-09-21 14:06:18 +03:00
Andrey Fadeev
9143bf84f1 HG-424 Do not fail outdated customer binding machine (#251) 2018-09-20 16:27:54 +03:00
Andrey Fadeev
a2e71790db HG-424 Add customer polling deadline (#245) 2018-09-18 18:06:15 +03:00
Anton Belyaev
190b38e13d Refactor InternationalBankAccount in payout tool info, add modification (#238) 2018-09-17 16:19:24 +03:00
Артем
9acfd2fe78 HG-414: Added bypass antifraud (#241) 2018-09-17 13:45:36 +03:00
Andrey Fadeev
aa89507753 HG-389 Add caching party client usage (#232) 2018-09-06 18:50:37 +03:00
Andrey Fadeev
f6a62b4269 Add default woody deadline to requests without it (#236) 2018-09-06 13:26:44 +03:00
Andrey Fadeev
8c12ba8561 HG-386 Remove wallet management methods from party management (#230) 2018-08-27 12:45:53 +03:00
Andrey Fadeev
14df635075 HG-250 Multistage payment start (#229) 2018-08-09 11:32:18 +03:00